Storage. Coal, natural gas, and nuclear generate power regardless of weather, day and night.
Solar generates plenty of electricity (with enough panels installed), but it slows down significantly under cloudy skies and stops entirely at night.
Wind generates plenty as well…unless the wind stops blowing.
The grid needs power all the time, not just when it’s sunny and windy. For renewables to actually compete, the excess power they generate during sunny and windy times needs to be stored for use when it’s dark and still.
As much as we applaud lithium batteries, our energy storage technologies are abysmally inefficient. We’re nowhere near being able to store and discharge grid-scale power the way we’d need to for full adoption of renewables. The very best we can do today (and I wish I were kidding) is pump water up a hill, then use hydroelectric generators as it flows back down. Our energy storage tech is literally in the Stone Age.