Racism is a fantastic way of introducing conflict without having to come up with a particular reason. And stories without conflict are often really boring. Comes with the bonus points of being realistic.
Like in what way? Ideally, every bit of world building would be justified, but thats not always realistic.
Unironically, the elves aren’t racist against orcs. Orcs were elves that got corrupted.
Arent there worlds where theyre made of clay? Or other origins?
Pretty much the only consitent thing about orks are that they big, dumb, and muscle bound.
Outside of lord of the rings? Yeah, sure. Outside of existing stories orcs can be literally anything.
Uruk hai were created from clay or something like that. They’re the ones you see come out of the pit in the LOTR movies.