The court acknowledged that this may seem unfair, but when police have to protect the public, they cant be burdened with the condition that they compensate whoever is damaged by their actions along the way.
The police don't have to protect the public.
But note that they ARE burdened with the condition when they use excessive force and must compensate for that.