Old streetlights used a light dependant resistor that failed when it got old, dirty, or sunburned.
Then they used the solar panel to switch the light on or off.
Today my streetlights have an RF modem switch them. They are not solar because their LEDs draw a small current from cheap electricity.