The answer: There is no light switch—it's a light sensor that turns on automatically when it gets dark.
This riddle plays on the assumption that human agency (a switch) is required. The "trick" is recognizing automated technology: photocells, motion sensors, or timers that control lighting without a manual toggle.