Scarce resources may be anything from water, food, territory to jobs, friends, and money
In times of scarcity of ANY resource, prejudice will arise, though the competition will be fiercer if it is a "zero-zum fate" (where there is one winner and one loser) and if the resource is finite (like territory) prejudice becomes more likely