Ah, bu the devil is in the details.
There are different rule sets for how expenses are deducted for mining and oil drilling. The biggest one that I can see on a quick read of the regulations is that oil drillers are allowed to deduct the cost of acquiring the property and/or drilling rights, and miners can't. That's a pretty huge difference when millions of dollars are paid for oil leases.
https://www.law.cornell.edu/cfr/text/26/1.612-5https://www.law.cornell.edu/cfr/text/26/1.617-1
Oil companies can deduct up to 100% of the gross income from the property, and other mining companies can only deduct 50%. There are also differing percentages of what percentage can be deducted. Cobalt, lithium, and nickel have slightly higher percentages, but again I believe these are for mines in the US and relatively little of these minerals are produced in the US.
https://www.law.cornell.edu/uscode/text/26/613
If you do some basic research, you'll find that even though the Big Oil deductions are similar in nature to mining deductions, there are differences in detail that make the oil deductions more profitable.
Somehow, I doubt that you'd advocate for removal of subsidies that benefit your lifestyle.