The actual problem began when humans invented candles and lightbulbs and started staying up past 8pm, and going to bed at inconsistent hours, therefore waking up tired the next mornings.
Our optimal sleeping time is based on the rotation of earth around the sun. We have removed our brain's natural sleep trigger (lack of light) so our sleep habits have been getting out of whack for the last couple of hundred years.