because chlorine attacks the chromium-oxide surface layer of the metal and wears tiny holes in it. That’s pitting. Salt is sodium chloride and it releases chloride ions when it dissolves in water.