It was Hitler's government that invented all of these socialist welfare programs. That's why it was called National Socialism, it was strongly nationalist and also with the highest focus on helping all of their people. There were programs to help disabled people, developing new medical treatments to improve their condition, and also programs to find work for disabled people with jobs that they are able to do.
The focus was on medical improvements to improve everybody's lives. There was work to try to heal disabled people, reduce their pain, and try to reduce their problems. And it was only with serious genetic deformities, genetic diseases, and disorders that the person would not reproduce, because we don't want the children to suffer with the same problems.