Why does adding sugar/salt causes water to release?
Salting (sugar coating) the surface of the vegetables; causes Osmosis.

Water molecules inside the fruit, will move from lower concentration of solvent (salt/sugar) to a higher concentration medium (outside of the fruit)