The tech industry doesn't know how to distinguish between marginal and excellent workers or even between them and poor workers. Instead, they have hazing rituals that they know don't work but continue to not only use them, but expand them, perhaps in hopes that eventually if they're obnoxious enough, they will magically output the rock star employees instead of random quality employees.
Welcome to capitalism? They’ll need to retrain at their own expense. Hopefully they’ve saved enough to provide shelter, food, and health insurance for any dependents they may have acquired along the way. The destruction part of creative destruction is that pretty rough.