Dimming the lights for takeoff isn’t to set the mood. It’s so your eyes can adjust to the dark in case of an emergency where the lights shut off.

Fact source