That seems to be mostly a US thing. Programmers there seems to be more libertarian than elsewhere,
and unions are seen as, if not an embodiment of Big Bad Communism, at least a recognition that we’re not as independent as we might would like. Here in France we’re hardly opposed to unions. We’re
lazy in not joining for sure, and some do say they’re useless, but almost no one would dare suggest they’re
bad.
By the way I believe the difference between our ways of thinking goes beyond such politics, and influence our technical decisions as well. Someone who’s all about negative freedom (lack of restrictions) and distrusting authorities (most notably governments), is I think more likely to prefer permissive licences and dynamic typing.
Conversely, those who prefer static typing are more likely to see programming as a branch of applied maths, accept more immediate loss of freedom for a greater good, and believe that a government can be trustworthy even if they may not like their current one.