The way it makes sense is that "right-wing nutjob" is not a protected characteristic, whereas race & sexual orientation are protected.
I know it's more complicated in practice because the problem is political and other factors come into play.
If a Muslim man is punished by his employer for not shaking hands with women he meets in his work, is that religious discrimination? Or is he discriminating against the women because of their sex (also a protected class)?