Racism and sexism is allowed. It's not illegal for a person to express a racist or sexist opinion and it should never be—it's just discouraged by most of society these days. There's a clearly defined legal line for where expressions of support for violence become credible threats or incitement of violence, and it sounds like some or all of these did not cross that line, which means the police acted emotionally and illegally to arrest them.