Well it's one of the typical lawyer tricks. There is a paragraph in the constitution that explicitly grants you freedom of speech. There's also others that more or less say you get to jail for saying xyz. Unfortunately, law is not a program that has to compile.
Then put selective enforcement on top and you have a very powerful weapon that gets great PR ("against hate").