The due date for Sales invoice inside Xero is not the Shipping Due Date. It is the "Payment Due Date".

The due date is calculated based on the customer settings inside Xero. The required number of dates that needs to be added to the order date is specified in customer settings.

Based on that it adds that number of dates ahead to the order date when calculating the Due date.