Exactly, humans are pack animals, when we are unexpectedly grouped outside our own pack we tend to react. That interaction is not racism as much as a survival mechanism, most people quickly dismiss it and move on, but it is always there. Real racism grows only when people allow it to.