Because to some extent we still have won some fights. Right now, even a cyberpunk setting is not realistic to imagine that we are still burning fossil fuels in 50 years.
The fact that even Texas nowadays, a nation that considers that burning coal is a synonym of masculinity, is installing more and more renewable capacities. Tell you that this is something that even in a hyper-capitalistic society is going to happen.
Even with cartoon villains in power, they don't manage to prevent that trend.