You err in thinking it refers to cosmology. The waters were commonly used to represent chaos, the unordered creation. God surveyed the unorder and brought order to it, making it good. This idea is brought to a conclusion in Revelation when it is stated that in the fullness of time, there will be no more sea.