Because some protesters will use that information to go to the homes of police officers and continue their vandalism there.
A mob follows no rules and some try to blind police officers using lasers. Or they can simply harass somebody for days on end.
No one ever won a lawsuit against a mob.