Solar panels convert the heat energy shining on them from the sun to electrical energy—the charges that the sun's heat stimulates flow in one direction. Hence, the solar panel is DC.