Ancient creation accounts are about function rather than material existence. Things are thought to exist only when they are given a purpose and a name. Genesis 1 then is mainly about the purpose of the universe rather than its material creation (While Yahweh is the creator of all things out of nothing, this may not be what Genesis 1 is about.)