The market value of that home may have doubled to $800,000. But because the down payment locked in a pre-determined price, the buyer pays $400,000. Now, in an alternate scenario, say the zoning approval doesn’t come through until year four. This is one year past the expiration of this option. Now the home buyer must pay the market price because the contract has expired. In either case, the developer keeps the original $20,000 collected.
When buying or selling options, the investor or trader has the right to exercise that option at any point up until the expiration date - so simply buying or selling an option doesn't mean you actually have to exercise it at the buy/sell point. Because of this system, options are considered derivative securities - which means their price is derived from something else (in this case, from the value of assets like the market, securities or other underlying instruments). For this reason, options are often considered less risky than stocks (if used correctly).