As the potatoes cook, they absorb water. When the water is salted, the potatoes absorb salt too. This helps to season the potatoes evenly and is more effective than adding salt at the end since the salt is embedded in the potato flesh.