Parts of the overhead wires (or the third rail) are left un-electrified in order to break the network up into manageable sectors (and to avoid some complicated electrical problems which I admit don't quite understand). When the train passes by one of these, it loses power, and the lights and ventilation go off.