If you or I had lived 4,000 years ago I have no doubt we would have come to the conclusion that the earth is indeed the center. All we would have had to gather data would be nothing but our eyes, and with just them it is perfectly logic to conclude that the sun revolved around the earth. The Bible wasn't written by 21st century scientist. How in the world could anybody possible expect ancient people to know what we know today?
The problem with your "4000 years ago" assumption is that there are no evidence that there were ever anything written about the bible during the Middle and Late Bronze Ages (2nd millennium BCE).
From the Hittite, Levant, Mesopotamia and Elam, the most common types of writing systems during the 2nd millennium BCE were cuneiform, adapted from the 3rd millennium BCE Sumerian cuneiform.
The Phoenician alphabets didn't develop until very late 2nd millennium BCE, and ancient Hebrew (or Paleo-Hebrew) alphabets evolved from Proto-Canaanite alphabets.
And you don't find any biblical texts, until around the late 7th or early 6th century BCE (before the capture and sacking of Jerusalem and exile at Babylon in 587/586 BCE). The oldest known biblical text was found at Ketef Hinnom, with discovery of biblical passage (the Priestly Blessings from Numbers 6) inscribed on silver amulet.
The point is no other literary evidence before the 7th century BCE, and certainly nothing in 2nd millennium BCE. Not written on parchments or papyri, not on stone or clay tablets or any other medium.
The other point is that the biblical stories may have set in earlier time, doesn’t mean the stories were written at that time.