Daylight in the ancient world
In ancient times Daylight was thought to be independant of the Sun.
The enitre universe was believed to have a Day/Night cycle. It was thought that the sun just so happened to be in an orbit (around Earth) such that it was only in the sky during the day.
If you think about it, such a view is not surprising. The sky is blue during the day, and the sun is yellow - so how can one be causing the other? Also the sky gets light before the sun rises and doesn't darken until noticably after the sun has set. Also clouds can block out the sun but the rest of the sky is still light.
Anyway, for whatever reason, the Sun was not believed to be the cause of the Day/Night cycle. The sun was just the brightest of the 7 bodies (Sun, Moon, 5 planets) that orbited the Earth.
This view can be seen exemplified in the creation account in Genesis 1. God creates the Day/Night cycle on the First creation day, and the Sun on the Fourth creation day. Since they were considered independent entities, there was no problem with this.