The lamp lights up when the power source is removed by flipping the switch.
The point of this simple circuit is to demonstrate how a device can trigger something when its cables are snapped.
This could be used for anything, like an electric door that automatically and permanently locks when someone tries to get around the security measures by removing the power source.
In this example, the lamp represents an extern mechanism that welds the door shut.