So the professor basically said all lives matter, but in a slightly provocative way.

Saying all lives matter is a perfectly reasonable thing to say, but as usual in the current climate the issue is not what is said but who says it. If it's a white person it's taken as a sign of white fragility or perhaps even hidden racism.