Genocide Under the Nazis

Why did Nazi Germany kill millions who did not conform to its ideas of racial-biological 'purity'?