Been through grad school, 1980s. Survived. Tenured. Emeritus. Retired. I'm sure it's only gotten worse. The whole thing is set up to weed out… basically a whole bunch of people, because higher ed is not providing enough jobs for people with PhDs. (Yes, I know there are advanced degrees that don't lead to an academic job.) And it's set up to provide a slave labor force of teachers for undergrad classes. A lot of fine people end up bag ladies, or moving off to organic lesbian goat farms (two examples from my peer group).
And it's functionally a stress test, to find the cracks, before grad students get out in the real world and face the insane demands of a life of itinerant adjuncting, the horrors of seeking tenure, or the other professional jobs that require higher degrees. If they crack after graduating, they can take a lot of other people down with them. (Seen that happen, too.)
That doesn't excuse any of it, not by a long shot. A whole bunch of stuff in this world needs to be reformed. But: it does offer a chance to see that it's only a game—and if the game is something that makes you miserable, you need to find a different game. A game where you can find ways to be kind, and not perpetuate the misery.