This is because as the Earth revolves, the northern hemisphere ends up tilted away from the sun in the winter and toward the sun in summer, which puts the sun more directly overhead for longer amounts of time.