To recap, the main reason airplanes dim their cabin lights during nighttime takeoffs and landings is for safety. It creates a safer environment by making the emergency exits easier for passengers to find while also allowing passengers to adjust their vision if an emergency occurs.