It happens because the sun bleaches out the melanin, the pigment that gives your hair its color.