That's because humans saw the Earth first, and then the stars, as the primordial atmosphere cleared enough for them TO see them.
Fair enough. But how come you get to pick and choose which sections of Genesis to take literally, and which to take metaphorically? Why is it so hard to understand God creating the earth in seven days, as being a metaphor for the multi-billion-year creation process since the Big Bang?
By means of disclosure, I think the Bible is bunk, but have no problem with others believing in it.