Jesus didn't realize the earth is billions of years old, since humanity was hundreds of years from making that discovery in Jesus's time. Nowhere in the Bible does it say that Jesus was omniscient about then-undiscovered scientific facts.
If Jesus was the creator of the universe, don't you think he (God) knows about the laws that govern the universe, as Job 38:33 points out? What undiscovered scientific facts are not already known by God?
You're venturing into the territory of
how precisely Christ's divine nature and His human nature interact, here.