Originally the term was applied to left wing anarchists.
A radical union group in the 1800s were nicknamed "rednecks" because they wore red scarves around their necks as a badge of membership. As often happens in language, the word remained the same, but the meaning migrated.
