Is eugenics not just the improvement of the human species by removing genetic diseases and the like?

Why is it perceived as bad? Is it because of the way the Nazis got into it?