I imagine it's actually to help more during the day rather than at night. At night the white vs red lights will be a better visual indicator.In the UK they are white at the front and yellow at the rear. This is to help drivers on dark nights identify if the car in front is facing them or not.
(In Germany they are white at both ends of the car and in the Netherlands they are both yellow)