However, unless soybeans were priced at $15 per bushel in the market on the expiration date, the farmer had either gotten paid more than the prevailing market price or missed out on higher prices. If soybeans were priced at $13 per bushel at expiry, the farmer's $15 hedge would be $2 per bushel higher than the market price for a gain of $2,000,000. On the other hand, if soybeans were trading at $17 per bushel at expiry, the $15 selling price from the contract means the farmer would have missed out on an additional $2 per bushel profit.
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).