What is the motive behind racism?

Let’s all just compare it to a child throwing a temper tantrum. How do you show that child there is no reward behind doing so?
What is the motive behind racism?
Post Opinion