It’s not just because it’s dark. Well, it partly is, but more accurately it’s a result of a complex series of biological processes which give rise to something called circadian rhythms.
This video by Sci Show explains how they work—and how they regulate all kinds of different processes in our bodies, from eating to behavior.