While looking up the relevant law, I looked through the Civil Rights Act of 1964 which prohibits employment discrimination on the basis of sex and various other things, and discovered that there is an explicit exception written in to the law for members of the Communist Party. So you can totally discriminate against any commies who might try to work for you. Not really relevant here, but so weird I just had to share.
I wonder if it was just a "safeguard" against members of CPUSA claiming their membership was a religious affiliation.
http://lawdigitalcommons.bc.edu/cgi/viewcontent.cgi?article=...
It sounds like it was an amendment introduced by a confused lawmaker who wanted to make sure the law wouldn't stop companies from firing Communists. The amendment was then accepted on the basis that it didn't make any difference (since as you note party affiliation isn't protected in the first place), so it wouldn't do any harm to include it.