Why is your swimming pool water salty? Do you fill it from ocean water? I’m asking because most people fill from the municipal water supply which is not salty.
It splits the sodium chloride in the water into chlorine and sodium hydroxide so you don't have to keep buying solid chlorine tablets.
For the electrolysis to work, it needs bout 3000ppm to 5000ppm of salt, for a pool this could be hundreds of pounds of salt.
As an aside, the ocean is about 35000 ppm salt so this is about 1/10th the saltiness of the ocean.