Pumped hydro is objectively worse then batteries.
Anyone can install batteries anywhere at a fairly minimal local fire risk.
A dam is a major mechanical structure which if it fails will straight up obliterate downstream towns, and as such requires a numerous specialized engineering designs and on going maintenance to retain basic safety.
The depreciation of a dam versus batteries can can weigh the benefits towards dams.