The implicit idea is that the courts uphold the letter of the law (an unnatural death is always somehow murder, prosecute impoverished people with a blanket policy of lenghty jail terms for any manslaughter at a minimum) without considering the spirit of the law (maybe some murders should be counted as self-defense, given that the constant ambient background noise of implicit corruption and disorganized chaos creates an environment of death by a thousand small cuts, making it profoundly difficult to obey the rules perfectly while keeping one’s head above the proverbial water).
It is a good thing in countries that are fairly low crime. In places where the criminals operate with impunity, we need a bit more reactive violence. If the police are useless, criminals should at least be worried about being summarily executed during their attacks on other citizens. Instead, it's backwards. Law abiding citizens have no recourse.
Civil liberties aren't worth much when you can't freely travel and live in the first place. Sure, a few innocents will lose out with an abridged justice system. But that's already happening at a high rate.
And sure, they could also just turn the country around. Get foreign countries to run ministries, get a whole new police force, increase resources to the justice system 10-fold. But tell me what's more probable, that, or just taking a hard stance, have swift summary justice and giving citizens strong defence rights?