Tidal power involves machinery below the water, which then becomes as expensive as a boat to maintain. Wind power has just ridden the cost reduction curve so much better.
And even offshore wind turbines have most of their complexity 300 feet above the water line. The air might be salty up there, but that's nothing compared to being submerged in salt water, in a strong current that drags along seaweed or abrasive sand.