Why does our skin get dark and our hair get light under the sun?
In both cases, the sun breaks melanin, responsible for the color of hair and skin. The difference is in the fact that hair is not living, compared to skin. When the pigment is broken, it is not replenished in hair, so the latter gets lighter. Skin "answers" to the sun with a stronger replenishment of melanin, making the color darker.