Like if you do back-end database boring stuff of moving data around at random Enterprise X, then you can charge through the roof because they know that the only reason you are doing this job is for the paycheck.
But if you are working on video games/Tesla/Other cool stuff and obviously passionate about the mission, you get screwed on compensation and if things go wrong, treated inhumanely.
Also, why treat people like shit when they get laid off. Can't just manager meet with the person and say, hey our division got cut, I am sorry it turned out that way, happy to help out with the job search.