which setting is the light switch on, Auto / off / side lights / low beam?
was there a large vehicle behind you at the lights as the sensor in the rear view mirror might have thought it was dark so turned lights on but when you pulled away it changed back as there was more light.