If you produce more than enough energy with your solar panels, do you have to sell the excess energy to the utility company or is there a way to store it for later use?
It’s really hard to store the energy locally and recover it at a better price than paying the utility company.
In an area that has a "net metering" plan, the utility company acts just like a huge storage battery in practice.
Let’s say you had some actual batteries in your house, and the solar array generated 1 kWh more than you need during the day. You would charge those batteries, then draw the 1 kWh out at night. Net charge from the utility company: zero. But you would still have to buy the batteries and charger, and deal with the hassle of maintaining the batteries.
With net zero metering, if the array generates 1 kWh excess during the day, you drive your meter backwards, effectively selling to the electric company. At night, when you draw out the 1 kWh, the meter advances again, showing a net advance of zero. Net charge from the utility company: zero. Financially the same, except no batteries.
The example above is just an approximation, though. Some utility companies have various ways of charging you even though your net usage is zero.