We do not actually know the specific situation of the OP and can only pass on personal/professional experiences here.
For the buyer, such a situation is of course absolutely undesirable. This would lead to a double burden.
But is there really no freedom of contract to agree on when the price is paid?
You are right, there is freedom of contract and I can design whatever I want as long as it is not immoral.
I have the feeling here that two things are being mixed. On the one hand, this is the contract design with the lender. It is possible that he grants a repayment-free period, but he is not obliged to. And the second is the contract design with the seller. However, he will generally want the purchase price upon transfer of possession. If I remember the law correctly here, you bought a house and renovated or remodeled it before moving in. That is the identical case. I don’t think that the seller initially did not want any money.