VAT is collected by the retailer and paid to the exchequer of the country of sale.
The VAT sum is recorded at the time of sale, but the whole amount sits in the company finances until the VAT is settled with the exchequer.
The company holds the VAT sum between collection and settlement, potentially benefiting from the temporary cash flow in that period.