The futures market is a zero-sum game except the handling fee. The money you earn must be the money lost by one person or some people in the market. For example, in your last example, they should all choose the opposite operation and close their positions before the delivery month, which is equivalent to cash delivery. So in this example, to make more money is to short the loss money, and the exchange just plays the role of a matchmaker.