The calculation is going to change if there is a higher probability of drinking water contamination for whatever reason, or if more people live in the area and would be impacted by an event, just as the risk matrix is different building a nuclear power plant in France compared to building one on the Japanese coastline. Of course every jurisdiction makes its own decisions, as is their right, but the consequence of always taking the least risky option can leave a country in a tough situation when those options don't cover their energy needs, like in Germany (and elsewhere in Europe) right now.
The issue a lot of people have with fracking is not just the local environmental damage, but also the deeper issue of whether it's worth pouring investment into an obsolete industry that is going to produce inputs for other obsolete industries, all of which are environmentally damaging on any scale, just so you can gain a bit of energy security in the here and now. It's not just kicking the can down the road on your future energy security - it's also pushing us towards an extremely chaotic and difficult future for everybody.
For example take coal one of the dirtiest fossil fuels. Steel plants making carbon steel steel need to convert that coal into coke. Even an electric arc furnace needs coke to make carbon steel.
Similar things with other hydro-carbons. So its not like we are gonna stop using them even if the grid was entirely renewable and nuclear.
Now industrial processes that use such hydrocarbons to produce useful stuff other than energy are certainly a minority of the market. So mines and wells for such things will still exist. So the tech is still useful, but we just ideally stop using these hydro-carbons as fuel.
As I understand it, most fracking isn't even profitable right now - it is only profitable if oil prices are relatively high.
What is the cost of not fracking? Very, very debatable.
On a case by case evaluation, the risk from any single fracking well seems much higher than the risk of not using that well. On the aggregate, the calculation may be different. But again, it is all very arguable.
In an argument of this consequence, the side that says, "That's secret information" should lose.
https://www.usgs.gov/faqs/does-fracking-cause-earthquakes