Maybe some more dead cops, too, but endangering their life for that whole legal process thing is kinda' literally what they signed up for.
Now that I would call a shitty attitude. But then again I come from a country with much less privatly owned guns. Always thought that motivation to join the police would come from a desire to help people, not a desire to die for your country. There's the army for that.
(Note that over here, cops dying in the line of duty is a thing that almost never happens.)
Their job in this country is to enforce the law. Literally that, helping people was deemed not to be particularly important by the courts some decades ago. If they ain't going to be legally accountable for saving peoples' lives they damn sure better be upholding the legal system, and that means court time and due process, not dead on the street.
And if that means a greater risk of injury or death, well... that is pretty much precisely why (in part, if nothing else) we give them so many goddamn privileges and legal powers. That's the cost. You get greater control over folks' lives, greater largess in terms of violence, great frothing heaps of societal appreciation (which is
still happening, mind, even with all the blowback they've been getting the last handful of years), so on and so forth, and in exchange you accept greater risk to your life, among a number of other things.
... though as usual it's worth noting that cops don't actually have much of a fatality rate in the US. They're in the top twenty, but not the top ten, and so far as I can recall most of their deaths aren't due to getting shot. S'usually traffic related, iirc.