To not have to rely on the grid as much, either in case it goes down or as a step towards going off grid.
Often there are different tariffs at different times.
Also sometimes if there is a high level of Solar Generation in an area the voltage goes over the allowable limit and the grid will not accept more. In this case you could store energy and then feed the grid later.
BTW i am not saying these will be cost effective strategies.
To not have to rely on the grid as much, either in case it goes down or as a step towards going off grid.
As long as there is already a grid connection it will not be cost effective to connect a grid battery.
For example a Tesla PowerWall 2 including accessories and installation costs with have a typical cost amortization of at least 55cent/kWh (I can provide a detailed calculation if anyone is interested).
That means that each kWh you get out of the battery will cost you 55 cent/kWh + the amount energy you put in cost's.
Using the available solar PV as needed directly by the house and exporting the excess to grid is way more cost effective than involving a battery even if the grid pays nothing for excess and grid energy is very expensive.
Having a DIY type battery is not acceptable for the grid but even then with best LiFePO4 you are still looking at around 20 cent/kWh just for the battery cost amortization and you need to add an inverter/charger also that has his own additional cost amortization.
Going offgrid is a different story as there you will need a battery.
I'm fully offgird with my own custom solution that includes PV heating not just electricity but in order for this to be cost effective (and it is actually the most cost effective energy solution) I used thermal storage for the heating part that only has a 1cent/kWh amortization cost.
I have a small energy efficient house 65m^2 (~700sqft) close to passive house standard of insulation and my total bill (amortization cost for the life of the system that was paid in advanced) for heating + electricity comes to around $42 about half of that for heating and half for electricity.
To be even more precise the cost for electricity is around 17.5cent/kWh and for heating around 4.2cent/kWh thus electricity similar to grid price while heating better than natural gas.
And as a disclosure yes my open source project is available on
Kickstarter so you may think I'm biased but I can prove all the claims about my system. I also need to note that to get to this low costs only material costs where included no labor cost so is in case of DIY.
Battery cost will need to drop dramatically in order to be cost effective in grid connected systems and still best type of battery LiFePO4 has the same cost it did about 7 years ago when I got my first test cells.
Grid in most countries is extremely reliable and I never had more than a few hours not even once a year with grid down time while I was grid connected in the past.