It's a lucrative gig. In NYC, the NYPD runs commercials advertising full benefits, competitive compensation and only having to work for 20 years before being able to retire with a pension.
[1] https://www.nj.com/news/2017/05/how_much_is_the_median_cop_s...