It's morally illegal because it can provoke others, which can lead to other things that can damage society. In the US, Hate speech is criminalized when it directly incites imminent criminal activity or consists of threats of violence against someone or group.