They don't. People grow up to be like their friends, who in turn grow up to be like the general cultural sentiments among the adults they interact with. (Source: The Nurture Assumption.)
Why do you think Hitler was Hitler?
Why do yall think Hitler invented anti-semitism in Germany? Big Bad Wolf fallacy.