Many of the cheapest, cleanest sources of power are dependent on environmental conditions — turbines can’t spin if the wind isn’t blowing, and solar panels can’t harvest energy if the sun isn’t shining (usually).
Fossil fuels don’t have that consistency problem — you can burn coal or natural gas at any time to produce electricity — so we rely on them for times when renewable energy isn’t available.