I think the answer is to filter police who may have tendency to violence and racism out of the police force. There have been police who violate rights and the police departments keep them on even after the department or city pays huge settlements.
From my understanding police are able to leave departments and not necessarily have their complaint history follow them to new departments. So if they have racked up complaints then they could move to a new department and essentially have a clean record.