If vegetables have a lot of water in them, they can become soft and tasteless if you don't remove the extra moisture before cooking. To do this, you will need to use salt and give it some time. Adding salt to these vegetables with high water content will help remove the excess water and enhance their flavor. Although this is not mandatory.