China realised that they needed to change due to the smog that covered their major cities, burning coal and fossil fuelled transport was the problem. Hence the very rapid change. Major heatwaves a few years ago caused extensive blackouts as the grid couldn’t supply the electricity.