Erm, why didn't you make appropriate investments in infrastructure?
Because it cost money. Why should you expect someone else to make an unprofitable venture if you yourself were unwilling to do so?
In any case, the variability in solar and wind is known. To keep the same level of electrical service will require a HUGE increase in energy storage.
The thing about coal / gas / even nuclear to some degree... you can "turn it off" if there's too much power being pumped into the grid... and you can "turn it back on" if there isn't enough power. That's why natural gas "Peaker Plants" continue to be built, despite the fact that they're much more expensive than Solar or Wind.
The enemy of "Peaker Plants" is cheap energy storage. Coal and Nuclear power is more efficient if you just keep it on 100% of the time and then store the energy anyway.
And believe me, utility companies HAVE been building cheap energy storage. They're called Pumped Hydro for the most part. Other solutions for cheap energy storage simply didn't exist until recently. Lithium Batteries are expensive and don't provide much storage believe it or not... not on the Gigawatt scale needed to last more than a few minutes.
We will likely continue to use "Peaker plants" for the near term, at least until the energy storage issue is solved with something much much cheaper.