Salary isn't the only point of negotiation. Unions can protect people against safety concerns, long hours or lack of vacation etc. or whatever issues are a problem at a company. A union is a group of people organizing to define how they want to work and salary structure doesn't have to part of the contract if it's not an issue to the workers. The union members get to define what is important to them.