Uh, how? This might be a country thing but you don't have to join any union in my country. You do, if they represent your interests. Big companies have multiple, competing unions, and the anarchists (which refuse state subsidies and are fully self-funded) are pretty good at what they do.
If you have to join a union isn't that essentially a racket?