That would not be efficient. Yes you could also store the energy by pumping water up hill and letter it turn a turbine later, but you'd lose a LOT of power.
You could store the energy in springs ala the da Vinci cart, but again not efficient.
All of these methods require a conversion, where as a Battery, Capacitor, or Leyden Jar will store DC as DC.