Because as soon as you “other” people you can psychologically treat them as non equals.
Look at all the WWII propaganda branding the Japanese as rats or the Germans as monsters. This is not on the same level obviously but the trick works much the same.
This is the basis for identity politics.