Adding salt to any food causes it to give up moisture, so adding salt at the wrong time can interfere with the cooking process when we are wanting to brown something - be it mushrooms, onion, or, in this case, potatoes.