Because it's ultimately the action (real or hoped for) that is more important. e.g. If someone raped kids on Epstein Island, they should go to jail, even if they were a Communist. Of course, no Communist did that. But, being a Communist (identity) is a neutral thing: not bad nor good.