There have been significant investments in economic, political, and social support of renewables which have enabled that growth. Also, the rising price of oil has made it more competitive.
Renewable energy has been promoted. Nuclear energy detractors have only advocated against it, rather than fighting the more difficult "shut down the nuclear plants and also spend money on more renewables" fight, they went with just "shut down the nuclear plants". Coal was the unintended result.