That is one structure, and it probably was predominant in the past because unions were historically in factories where workers were more interchangeable and had set tasks at a production line station.
Another is more 'guild-like': Jane Smith who is Waitress #2, and Tom Cruise who plays Ethan Hunt in Mission Impossible, are both part of the same union/guild, but one is able to negotiate a much higher salary. But they have the same 'base' level of protection with regards to working conditions, pension, health care, etc.
Certainly Tom Cruise can go above and beyond those 'base' levels, but the union/guild simply provides a floor which everyone is entitled to.
There's no reason why a union contract could not negotiate things like working conditions, health/child care, pensions/retirement funds, etc, but leave salaries out of the collective agreement. Or perhaps have pay bands, with retention/performance bonuses that are out side of the scope of the agreement, and are 100% discretionary to the company: everyone gets a floor, but there's no ceiling.
No, no immigrants in tech are going to want to vote for a union because a lot of its members think immigrants are part of the playing field that needs to be "leveled".