Actually, the desalinated water really does contain less salt then your water at home. The key for you was that you drink more water, that’s how you get rid of swollen ankles.
The most probable cause of swollen ankles on ships, is that they use a lot of salt in the cooking. Many of us don’t use much at home at all, and we’re not used to having such highly salted foods.