I was just thinking on that very same passage. Sun, moon, and the stars in the heavens were created later.
For not being a book written in the age of science, I've always been impressed with how the order of Biblical creation largely coincides with the modern scientific understanding.