In the judicial situation, you have a specific unstable/desperate person focusing their anger at Judge X. A judge is a symbol of the state, control, and of a specific matter.
The person doesn't accept responsibility for his actions and holds Judge X specifically accountable for his loss of freedom/income/family/etc. In this modern world, you add on the dimension of unstable politically motived disturbed individuals goaded on by various means. We're fortunate as a society in that disturbed people tend to be disorganized and ineffective, but I think that things are changing that make some of these individuals more dangerous.
I’m sure judges and politicians are at higher risk of retribution, no doubt about it. I only argue we’re not immune as engineers and tech founders. Someone who’s deeply disturbed can direct their blame on anyone remotely involved in their life.