I have numerous friends and acquaintances in this career field. Policing is a dangerous job, just not for everyone all the time on the whole. The barrier to entry is low and highly competitive but the selection process is a suboptimal filter. The pay isn't great compared to so many other things, but it's similar to the military in that qualified people show up and get trained to do the job which leads to an entire career, just without all the big downsides of military life. All these things combined is why bad apples can get into positions of authority and commit abuses.