Incidentally, that big something that hit Earth also knocked a chunk of it out that became our Moon. At least that is generally accepted theory.

So, here we are, orbiting the Sun, but tilted a bit and always with the axis pointed in the same direction. So different parts of Earth get the Sun’s direct rays as we travel through the year.