Well, the mental illness thingy came around with Freud, right? Before that, it was a crime.
I don’t know. Maybe the advent of psychiatry gave some hope of treatment and less chance of just extinction but with a 46 time higher incidence of STDs and the other kinds of harm to themselves and to the people around them, just ignoring it isn’t an option.