If climate change wasn't a real threat... they would act as you said.
If climate change was a real threat to humanity... they would still act in spite of it. Tragedy of the commons. What is a better future? Having done your part, when nobody did, and facing a broken world with a broken economy OR Helped kill the world environment but playing an even field?
That has been China's stance all along, anyways.
The only reason to move toward "renewables" is to not depend on fossil fuel imports. It is about sovereignity, not about morality.