The day-night cycle is caused by the Earth’s rotation as seen in this animation.
Because of the Earth’s rotation, stars appear to move in a circle around the North Star which happens to be located almost exactly in line with the Earth’s axis. Time laps photos show this effect.