That being said: police work is dangerous, but not uniquely or disproportionately dangerous: it doesn't crack the top 20 most dangerous jobs in the US[1], nearly all of which pay less than the police do. Being a delivery driver is nearly twice as dangerous, for half the average pay.
When we talk about the dangers inherent to policing, it's maybe worth considering whether those dangers are our own fault: cops in the US employ lethal and "less-lethal" force far often than cops in other countries do, and public trust in the police (leading to panicked interactions) is correspondingly lower.
[1]: https://www.ishn.com/articles/112748-top-25-most-dangerous-j...