That's not the case. A union is an organization for extracting rents above those the market would ordinarily bear. Rent-seeking activity --- no matter who does it --- makes society as a whole worse off. Bastiat showed that a long time ago.
When corporations organize to extract rents, we call them cartels and apply strict penalties under the law. Why should employees have a right to use these same tactics? The market for thee, but not for me?