It's for your own safety. If anything happens during take-off and landing - the most risky stages of every flight - then your eyes will already be used to the dark or the light outside, and you'll be able to react more quickly. That's also the reason why the lights in the cabin are dimmed for take-off and landing.