A nuclear power plant cannot free all of its energy at once as the fuel enrichment is too low for an exponential excursion of power, i.e. an explosion.
Batteries tend to burn instead of explode. Same energy, but released over much more time. And while an uncontained battery fire is a huge issue in a private home or in a car park because of how difficult they are to control, in a dedicated battery storage plant you can just let it burn down
It's not without risk, but as far as power plants go it's pretty low risk
Or for that matter the average petrol or natural gas storage facility? https://en.wikipedia.org/wiki/Buncefield_fire ("Europe's largest peacetime explosion")