A good person has a much easier time pretending to be an evil person than an evil person does pretending to be a good one.
Racism is a character defect. When under stress, it is harder to conceal your character defects. They start popping up.
Since Thomas doesn’t fit their narrative, it upsets them, all the way to the point where their character defects reveal themselves.
Good point.