What do people think is the cause of policing corruption? How does it effect law enforcement and the community?

What do people think is the cause of policing corruption? How does it effect law enforcement and the community?