The sun rises in the East and sets in the West, no?
Many times what is written in the Scriptures is what the culture saw and understood at the time. They were merely reporting what they saw and tried to explain it. They were not stupid, they just didn’t know. Sometimes, what they understood is not what the reality is. However, one cannot condemn them for not being correct.
By the way, the sun does NOT rise in the East and set in the West. The earth rotates in its axis and the sun APPEARS to rise and set. However, we do not call out someone who says this.