Cowboy hats, as we know them now, weren’t the hat of choice in the wild west. Those gunslingers preferred bowler and derby hats. Our current misconception is, of course, tied to marketing that took place post-Civil War.
It's not because of the water, it is because your skin is in contact with water...
Dumb people everywhere