Typically, solar panels that supply direct power charge a battery like on a sail boat, etc. They are direct current. Not A/C.
But the DC is converted to AC so that it can be used by typical appliances... to power the house or to feed back power to the grid.