Locking up isn't the only way to punish people. There's actually some talk about e.g. firing someone from his/her job for supporting a candidate. Recently, there was a long discussion chain in HN about how Y Combinator should sever any ties to Peter Thiel because he supported Trump. That Thiel "should be fired".
Discrimination at work may also be about free speech.