People pay good money for “sea salt” to use on their food. That’s just the dried residue from this process, assuming clean sea water to begin with.
It’s common to add a bit of salt and Epsom salts to water when brewing - the harder water improves the taste.
You get your minerals from food, not water. I doubt your premise about leaching body minerals by drinking distilled water (or rainwater!).