It is an answer, in that batteries were used for frequency regulation far before they were used for energy arbitrage.
But the real innovation is communication networks and IC control of the inverter. It's completely possible to create a waveform that modulates and responds to variation in frequency in the same way a large spinning mass would. And if reactive power is for some reason not enough, synchronous condensers are very old technology to solve that.