It's because of the minerals that come from the rocks on the land. Water, whether from the rain or the waves, corrodes these rocks. The minerals from these rocks eventually gets washed up and reach the sea or ocean thus making it salty.
Thank you. I'm twice smarter now
Was gonna say SEA wasn’t cocky