Humans are to some extent hard-wired for racism: we evolved socially living in small groups, outsiders, especially those who looked different, were seen as a threat or as competitors for resources.
The issue becomes critical when we look on racial characteristics as a reason for denying people rights or excluding them from the policial process.