In over 30 years Law Enforcement I have found that problems like these are allowed to happen from the top down.
Ineffective oversight and leadership allow problems like this to escalate. Failures to maintain law enforcement standards, training and funding on a NATIONAL level is bewildering. Minimum qualifications, minimum standards, comprehensive training for all employees will make a difference.