Fossils fuels are expensive. When the cost of running and maintaining gas and coal stations is higher than just building renewables/batteries, you just phase out fossils fuels (or just keep them running 10% of the time during the Dunkelflaute). It's coming soon.