its so that passengers' night vision (tranfer of light sensing from rods to cones on the retina) can adapt before touchdown,so that if you have a less than perfect landing,and require evacuation into the dark night,your eyes will not be shocked to be outside since the cabin was already dark,allowing them to be pre-adapted.
Not sure this is an agony aunt question though...