Why are higher margins imposed on energy contracts near expiry?

To account for increased volatility and reduce settlement risk.