Solar makes the kWh. Batteries protect the timing.
A solar kWh has the most value when it can be used when you need it. Without batteries, extra daytime production may be exported to the grid. With batteries, some of that production can be stored for later use.
That matters because the value of electricity changes by time, rate schedule, export credit, outage risk, and customer need.