Firstly, you didn't ask me to explain that, bu as you have now asked the answer is quite simple, race is a protected characteristic under UK law and there are highly defined rules around what constitutes hate speech:
"Any communication which is threatening or abusive, and is intended to harass...