The sunrise appears earlier and sunset appears later than the actual positions due to atmospheric refraction of sunlight. As sunlight enters the Earth's atmosphere, it follows a curved path through air of varying density, causing the observer to see the sun two minutes before it reaches the horizon at sunrise and two minutes after it dips below the horizon at sunset. This atmospheric refraction increases the overall duration of daylight by four minutes.