The nazis believe in their race superiority, since according to them, the original German Race is far more athletic and physically capable compared to other Race
By eliminating other race that they seem as 'obstructive' for the benefit of humanity (and raping the women at the same time) , they feel that they will produce a superior lineage for the advancement of humanity
hope this helps