Here's some background on the kind of typical agreement the school district entered into.
It’s exactly as the commenter says...taxpayers fund schools that buy land; the school leases mineral/oil rights to private companies (Likely self dealing with these leases too); private energy companies take the public land resources and pay themselves profits leaving the entity insolvent and then files bankruptcy protection; taxpayers Are left liable.
What incentive does an oil company have to not liquidate the company after they exhaust the well and seek bankruptcy protection? In other words say it cost $10M to properly close up the well, you have that in the bank but you pay it to the owners as profit instead of covering the well, company is now insolvent and receives protections.
Why would any oil company not do this on public lands? Do you think these owners disappeared or just set up new companies and got new leases on new public lands rinse and repeat?
We can't shame the population to solve a tragedy of the commons problem, it won't ever work, you need a strong power managing the commons to avoid the tragedy.
A better society would have incentives and structures that guide people to reduce these harmful effects and externalities.