Salt on cut cucumber can leave liquid in the bowl. That matters if you want a dressing to stay thick: water released later can dilute it.
Salting is one tool, not a requirement for every vegetable dish. Use a recipe’s measured amount, consider the salt in other ingredients and observe the result.