Not all, of course, but some suffer from "Thai supremacy" and racism. They're raised to think that Thailand is the best and everyone else is beneath them, yet here come these people from more developed countries, with more money than them, who they rely on to put food on the table. Some experience a kind of cognitive dissonance leading to projected hatred.
Also a lot of anti-foreigner campaigns since covid and the Thaksin era.