Ethnocentrism is the act of using our own culture as a standard to measure or judge another culture.
This would create a perception in our head that other culture is inferior compared to ours, which is why our culture is the one that is used as the representation of an ideal culture. Since we see other culture as inferior, we would become much more likely to discriminate the member of the other culture.