Do you have to turn off your full beams when meeting an oncoming train?
“Full beam headlights may not be used [...] when meeting an oncoming track-bound transport [...] if there is a possible risk of dazzling the driver.” (Road Traffic Ordinance)
The train driver must be able to see the tracks. There may be a moose further down the track, for example. The driver of the train must then have good visibility in order to activate the emergency brake.
More examples of explanations: