It can encourage police misconduct as in the incident described in the documentary film The Thin Blue Line.
[link] In the late 1970s, an innocent man named Randall Adams was framed by the Dallas County police department in Texas for a notorious murder of a police officer because they knew the more likely suspect, David Harris, was still a minor and thus ineligible for the death penalty so Adams had to serve as a scapegoat to execute.