Previous hypotheses emphasized that photosensitive proteins and circadian rhythms may have originated together in the earliest cells, with the purpose of protecting replicating DNA from high levels of damaging ultraviolet radiation during the daytime.
From what did  DNA need to be protected in the earliest cells? 
ultraviolet radiation