We evolved to be in the sun for much of the day. We no longer do that. Many of us barely go outside at all anymore. Light skin is an evolutionary adaptation to mitigate the issues related to this in higher latitudes, but it's not match for modern indoor lifestyles.