We like to think that software engineering is a totally run-of-the-mill occupation, but even with the most basic imagination I can think of scenarios where a software engineer would be threatened by kidnapping/torture/murder/blackmail.
Not all software developers are making web-apps for the next big startup, some of them are working on extremely secret, extremely secure, extremely influential, and extremely deadly software, often times employed by extremely powerful entities.
I had a disgruntled ex-customer show up at my place when a startup went under. It wasn’t violent but certainly felt like it could have been. You don’t need to be working on secret deadly software for powerful entities.
You had a disgruntled person upset at a company. That's a threat and is scary. I'm not downplaying workplace violence -- it's a different threat with different precautions needed.
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.
Without going into the details too much, the person held the founders (us) responsible for their financial loss. They made some anonymous death threats online first but we didn’t take it very seriously.
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.
In this case, the judge wasn’t injured on the job, her child was murdered by a would be assassin. How many software engineers have that problem?