Your point is correct however people have different ideas on what justice is and how it should be carried out. Therein lies the problem.
justice is what thee qazi dictates
Hazrat Ali (radiyallahu anhu) armour had gone missing. One day, while walking through the market place, he recognised his armour in the possession of a Jew. He went up to the Jew and said, “This is my armour.” The Jew retorted, “Bring witnesses to prove it. Alternatively file a law suit!”
Hazrat Ali (radiyallahu anhu) proceeded to Qazi Shurayh and laid a charge of theft against the Jew. The case came before the Qazi. Both plaintiff and defendant presented themselves before the Qazi.
Qazi Shurayh (rah), without being overawed by the presence of Ameerul Mu’mineen, Ali (radiyallahu anhu), seated himself with the stature that the occasion demanded. Calmly, without any trace of discomfort or panic, he commenced proceedings. He asked the Jew, “Does the armour belong to Hazrat Ali (radiyallahu anhu)?” The Jew flatly denied it.
Thereupon the Qazi turned to Hazrat Ali (radiyallahu anhu) and calmly requested, “Bring your witnesses to support your claim.”
Hazrat Ali (radiyallahu anhu) produced two witnesses. One was his son, Hazrat Husayn (radiyallahu anhu) and the other was his freed slave, whose name was Qambar. In his opinion, the evidence of these two was in accordance to Islamic law.
However Qazi Shurayh (rah) addressed Hazrat Ali (radiyallahu anhu), Bring another witness in place of Hazrat Hasan (radiyallahu anhu). The evidence of your slave, seeing he was freed is accepted.” Hazrat Ali (radiyallahu anhu) replied, “I have no other witness.” Due to the lack of sufficient evidence – a second acceptable witness – Qazi Shurayh (rah) dismissed the case acting according to the Shariah and not according to his personal reliance on the truthfulness of Hazrat Ali (radiyallahu anhu).
The Jew in the meantime was observing the entire proceeding with full attention. On leaving the courtroom, he watched intently to see the reaction of Hazrat Ali (radiyallahu anhu). There was not the slightest bit of annoyance on the face of Hazrat Ali (radiyallahu anhu). Not a word of displeasure regarding the verdict was uttered.