That’s the whole point of grid energy storage. Even if there are losses, it’s acceptable considering that otherwise you would need to burn fossil fuels in a peaker plant to keep the grid balanced. You aren’t supposed to recharge a battery like this with fossil fuels.