It's natural to be a bit racist an xenophobic internally. We're all animals at the end of the day who are motivated to protect our in groups and people like us.
The same way as it's natural to have strong feelings of wanting to inflict pain and suffering on someone who's done wrong to us or people we care about.
Choosing not to do these harmful but natural things is called "being civil". Nobody has to be civil, but a civil society is that way because it makes uncomfortable consequences on people who aren't civil.
It is not sensible to be xenophobic and racist in a civil society unless you consider harming others and inviting uncomfortable consequences on yourself as sensible.
But you don't have to pretend. You can choose to be outwardly racist and xenophobic if you want, it just doesn't seem very sensible.
The same way as it's natural to have strong feelings of wanting to inflict pain and suffering on someone who's done wrong to us or people we care about.
Choosing not to do these harmful but natural things is called "being civil". Nobody has to be civil, but a civil society is that way because it makes uncomfortable consequences on people who aren't civil.
It is not sensible to be xenophobic and racist in a civil society unless you consider harming others and inviting uncomfortable consequences on yourself as sensible.
But you don't have to pretend. You can choose to be outwardly racist and xenophobic if you want, it just doesn't seem very sensible.