although salt isn't necessarily bad for you due to it being a necessary electrolyte/nutrient we need, it will cause water retention
the main problem is people eat a lot of salty foods, which are awful for them. things like processed meats, processed foods, etc are loaded with tons of salt