Besides what @0110010001100010@lemmy.world pointed out,
"To Protect and to Serve" is just a motto, specifically the LAPD's (and other forces have also adopted this). Police aren't public protectors, their job is just to enforce the law (and a lot struggle with that).
This is like cops saying they no obligation to serve and protect.
Unfortunately, that statement has been successfully argued in court.
https://www.findlaw.com/legalblogs/law-and-life/do-the-police-have-an-obligation-to-protect-you/
This is actually nothing like that.
Besides what @0110010001100010@lemmy.world pointed out, "To Protect and to Serve" is just a motto, specifically the LAPD's (and other forces have also adopted this). Police aren't public protectors, their job is just to enforce the law (and a lot struggle with that).