Right, but the reason it has value is that it's tied to a high paying job where the supply of labor is limited. (Which is why, as soon as Uber flooded the labor side, the value of taxi medallions plummeted.)
If longshoremen were allowed to buy and sell their union memberships (say in the form of "union member medallions") they'd probably have similar value to taxi medallions.