They actually 'earmark' the payment (reserve it on your account) immediately, but don't actually charge your credit/debit card until the delivery has been made.
This is fine if you have plenty of money available in your account (or headroom on your credit card) - but can leave you short of ready cash if you were not expecting to pay until delivery.