The Big Bang occurred ~13.7 billion years ago, whereas our Earth was created only 4.6 billion years ago. So, starlight predated earth by 9+ billion years, and our Sun's ignition as a light source predated Earth by a few million years.
For details, please visit Reasons.org.
We all have our opinions on how to interpret the frankly poetical expressions of the Bible.
I see no reason to limit their meaning, or to impose a limited version of our understanding of them.
In any case, “day” “night” “the deep” and even “the earth” most certainly don’t exclusively refer to our specific planet or our specific diurnal cycle. Otherwise we would be commuting the greater sacrilege of denying the true vastness of his creation. We can look out there for ourselves, now with the understanding he has given us, and it has revealed wonders and miracles far past our understanding.
Gods word will apply to our distant descendants in a widespread galactic empire; it behooves us to have the humility and foresight to try to understand it the way they will.
Actually, those are just the latest scientific estimates for the ages of the universe and the earth.
Those ages have changed tremendously over the years as we learned more about the creation.
Currently we believe we have identified only 4% of what our universe is composed of. The remainder being two unknown factors called dark matter (24%) and dark energy (72%).
We have a lot more to learn.