This is more common than you to think. Making everyone pay union dues is intended to avoid free rider problems. When things work like they're supposed to all employees in unionized positions benefit from the union so it makes sense for all of them to pay dues. There may be plenty of reasons for this to not work in practice but that's the logic behind it.