Why does the sun appear to move across the sky over the course of the day?

Well, it's because of the earth rotating on its axis. Depending where the sun is in relation to the earth's angle, we can determine the time of day.