Because the ecofanatics focused on fighting nuclear power for 50 years instead of fighting fossile fuels.
Fast forward to now, renewable are not ready at all and they need fossile fuels anyway to provide steady energy. But geopolitics is making oil too expensive, so countries are mining coal again.
In brief, ecofanatics were stupid (and still are) and war in Ukraine.