Residency: move to a different location away from family, no longer living in a dormitory environment with the expectations associated with being a student but are now a real adult making your way in the world. Suddenly you have to make the whole package work on your own without laundry/cooking/mental health/financial support.
Now you can no longer put 100% of yourself into your studies, but instead can only manage the 60 or 70% that most people can muster when they have to actually maintain their physical existence while also meeting their professional expectations.
I'm an anesthesiologist. There are people who wash out because they just don't have the temperament for it. They're not dumb, they're not even bad doctors, they just aren't mentally equipped to sit back and relax while running a code.
How on Earth do you get to "resident" and have "gross incompetence"?
There are sooo many gates before getting to be a "resident" that this completely baffles me.