None of the people quit medicine. They just chose to have a greater impact by not seeing patients.
Doctors who see patients are effectively professional laborers. Their impact is limited primarily to the patients they see.
Doctors who step off the patient treadmill can contribute to health in ways that affect more people than they could if they were just seeing individuals.