For years, politicians were (publicly) in a state of denial about fossil fuel supplies while they proclaimed that fusion would soon solve all of life's problems.
Fusion using tokamaks as currently envisioned isn't sustainable even in theory, but they would be huge, centralized power sources that governments could easily control (thus, the only sort that gets any funding, whether viable or not. ) Fission power has too many problems, and would take a few decades to make a difference at best. No other source of utility scale power is more than a stopgap measure.
Somewhere in the last few years a lot of important people realized that business as usual will result in a collapsed civilization, soon. They had to do something, quickly but quietly. Admitting that we really are running out of petroleum or that practical fusion power is not going to happen in the foreseeable future would have bad social consequences.
The rush to renewables amounts to a last ditch hope of buying time, without admitting just how bad our situation actually is. They can only hope that owning one's own power source will be less popular if cheap commercial power is available again. Cheap that is, until the solar arrays and windmills rust away.