Fossil fuels receive ~$7T in global subsidies per year, per the IMF, even when less cost efficient than renewables. Markets can remain irrational longer than you can stay solvent. It’s government’s job to step in and correct market failures, when appropriate, including mispricing of potential investments.
https://www.imf.org/en/topics/climate-change/energy-subsidie...
(the world has already deployed 3TW of solar, and is approaching 1TW/year deployment rate, so we’re almost to the tipping point where fossil fuel subsidies will no longer be relevant; until then, finger on the scale when needed)