Salting zucchini draws out excess moisture, helping to prevent it from becoming soggy when cooked.