Fact 1: a planet rotating causes cycles of day and night on that planet. 
Fact 2: Planets move in elliptical orbits.
When something that moves in elliptical orbits rotates, it causes cycles of day and night on it.