Vegetables release water on the addition of salt to maintain the isotonic environment, this is because the salt solution is hypertonic compared to the vegetable cells.
This process is known as exosmosis, which occurs when the fluid moves from a region of higher concentration to a region of lower concentration.