Genesis 1:9 mentions waters and heavens: "הַמַּ֜יִם מִתַּ֤חַת הַשָּׁמַ֨יִם֙".
The words "mayim" (waters) and "shamayim" (heavens) are very similar.
Is this a coincidence, or is there some underlying connection between these two words (and concepts)?