The rotation of the Earth on its axis causes the time difference between different locations on the planet. This rotation results in different parts of the Earth experiencing daylight and darkness at different times, leading to time variations across different time zones.