The logical answer is because it's constantly shifting and looping the texture of the sky before angling it to match your point of view. The imaginary answer is that the minecraft world is not infinite even if chunks generate beyond the world border at some point you can't get close enough for anything to generate so that gives room for the sun to go around the world