Friend, that's a.... deep, deep mischaracterization of how the courts work. The cops, prosecutors and judges have deep relationship with each other. Yes, these are "courts problems", but you can't have these courts problems without cops, without prosecutors, without judges, etc.
Ask yourself: why do public defenders have a tiny fraction of the budget of prosecutors?