It's not just that. EV charging and solar resources have improved while fossil fuels have become more expensive. The maths is very regional. Some countries are better at producing electricity or oil than others.