Fact 1: a planet rotating causes cycles of day and night on that planet. 
Fact 2: Momentum is what causes the planets to orbit, perpetually, and the Earth to rotate, perpetually.
Day and night on a planet, in cycles, is caused by the momentum of the planet's orbit.