Yeah but geothermal isn't without its own risks. For one it's not available everywhere, for it to be viable at scale you need some serious hot rock formation and a way to drill through to it, and finally geothermal energy has been linked with an increased risk of earthquakes.