Creation is not necessarily linear. God could have created the universe long, long before he decided to make Earth.