Is the output of the sun somehow equal to the output of LED lights? One could imagine there are slight differences in how they react with the eye, so they probably bring different issues by being received by your eyes for long durations.
Not to mention humans have evolved with sunlight in mind and LED lights are relatively new. Our eyes most likely are more used to sunlight than LED lights.