When the photons in sunlight the solar panels these semiconductors use electrons to create electrical currents.
Are electrons replenished in a solar panel.
A solar cell plus a consumer load for example a lamp connected through a cable if consumer or cable is missing no electricity will flow is an electric circle and no electric.
When light hit the cells it energizes the electrons and they start moving flowing in the same direction.
It doesn t really lose electrons.
As they leave the cell and enter the circuit electrons leave the circuit and enter the cell from the other end.