In my area, there were five lunatic asylums, with at their various peaks, eight thousand residents; and there was a hospital for people with learning disabilities, at its peak, for one thousand residents. Some of these places were closed down as late as 1995.
A care worker told me ten years ago, that she had worked at the beginning of her career in this country, in a house for people with severe learning disabilities, discharged into the community from one of the big lunatic asylums. Their parents had dropped them off there, at age four and they had lived there ever since, until “care in the community” came along and incidentally the sale of all that land for housing!
The people with severe autism, learning disabilities, etc were in those places; not out in the community with jobs, a marriage and family. The people who were in the community, were higher functioning and capable of work, marriage, having children, etc.
Now people formerly hidden away from family in institutions are visible in the community, including schools!
You are not comparing like with like!
By the way, infant mortality rates in 1800 were one in three children died before the age of five. In 1900, one in six - seven babies died before the age of one. The big killers were poor sanitation, dirty water, dangerous milk in the summer and infectious diseases like diarrhoea, pneumonia, tuberculosis, etc. It was the survival of the fittest and my guess is many children, who may have been fussy feeders (like those with sensory problems or Arfid today) or gastrointestinal problems (like children with autism) just died!