Sunlight (photons) hits the panel. Photons knock electrons loose in the semiconductor material (silicon). This creates an electrical current due to the photovoltaic effect, which can then be harnessed as electricity.
This fact belongs to the general category and contributes to expanding general knowledge. Understanding such facts not only makes you smarter but also helps connect ideas across different fields.