Earlier quoted context omitted.
Calling it a "predictable eventuality" implies the victim is at fault for not preparing. I have a number of friends (of course, not software devs) who are aware that their company may at any point dump them (one company goes even so far as to say regularly "everyone is replaceable," and I have not been able to talk said friend out of leaving...). Due to a variety of reasons / excuses, they can't or won't leave these…
People treat being laid off like they treat death - it's something they intellectually know can happen, and does happen to others, but they're always entirely surprised when it happens to them. Many people (myself included!) have a hard time saving against potential outcomes and find it convenient to explain away why I don't (as I spend money on non-necessities).
I was actually more surprised that I somehow didn't get laid off at a previous corporation that had multiple rounds of deep layoffs, especially considering how often I had been laid off in the past.
In fact I found out when the department head put in his notice that I was on the list of one of those layoffs, but so many people quit in the meantime that they didn't need to lay off as many people, so he was able to take me off the list. I stayed there a little too long, through inertia and also I had so many 1 to 1.5 year job "hops" from all those previous layoffs I felt I should stick around a bit longer to show I am able to stick with a company when they let me.
It would have been a blessing if they had laid me off, though, it would have forced me to find a much better job much earlier.