Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thank you for adding the verse, it actually correlates to the amazing scientific process behind the complete water cycle. I already have upvoted the answer but I believe there is much to discover for a complete answer.
I am not fully satisfied with the answer as you haven't touched the water cycle. As per my little research into the subject, it is very much possible that initially all the water in the ocean was indeed fresh water which later turned into salty water because of the complete water cycle (water from ocean evaporates then falls on land as rain and then flows back to ocean with minerals and salts dissolved in it).