In essence, by demanding a king, the Jews were rejecting the Jewish court...
Let us recall: what is a Jewish court?
It can pass judgment only if there are witnesses. Without them, a Jewish court is powerless.
A Jewish king has the right to judge on the basis of circumstantial evidence—without witnesses. And that is what the Jews wanted to achieve. According to this commentary, they were opposing both Samuel and the judgment of the Almighty, who established the Jewish court.
Both David and Solomon were civil judges. The most famous trial in the world took place in King Solomon’s court, when two women came before him to divide a child between them.
“We were alone in the house,” they said. That meant there were no witnesses to what had happened. A Jewish court could not settle their dispute; their only recourse was to rely on the king’s judgment.
When the Jews wanted a civil court “like all the nations around us,” Samuel decided that he himself was to blame—perhaps he was judging incorrectly. Only the Almighty explained to him that this was not so.
This brings us to a discussion of the third sin as well.
When the Jewish people left Egypt, they depended entirely on the Almighty—both politically and economically. Indeed, the Jews are in the wilderness, eating manna from heaven; they have Miriam’s well—a stream flowing from a rock—and the Clouds of Glory, which not only shelter them from the scorching sun but also serve as a political shield, protecting the Jewish people from other nations. If the Jews sin, the Almighty takes everything away.
But then the people settle the Land of Israel and become increasingly independent economically.
Now there is no manna; they must reap, sow, and have granaries. Prosperity is far less assured than it might seem: there are no rivers in the Promised Land, and harvests depend on rain, locusts… Nevertheless, the connection with the Creator becomes less obvious. Although, of course, they cannot do without it—either economically or politically.
Let us recall: the Jews were not permitted to maintain a standing army (in the event of an attack, they had to muster a militia), nor were they permitted to keep herds of horses. We need only recall that when Joshua conquers the north, he is ordered to burn the northerners’ chariots and hamstring their horses. And this despite the prohibition against destroying things. Yet here was such a command!
In other words, the Jews are deprived of any military power whatsoever. Their protection comes exclusively through help from Heaven, from the Almighty.
Joshua himself describes it as follows (11:6): “And the L-rd said to Joshua: Do not fear them (the kings of the North), for tomorrow, at about this time, I will hand them all over to Israel to be slain; hamstring their horses and burn their chariots with fire.”
This shows that the children of Israel have no need for military power at that moment; the outcome of every battle is decided by the Creator.
We have already said that as the Jews settle the Land of Israel, they acquire an increasing degree of economic independence from G-d (His influence in this sphere becomes less and less apparent). Political dependence, however, lasts longer. But their request for a king shows that the Jews want even greater independence from G-d, including political independence, so that they can be like all the other nations.
The king they demand is supposed to give them that independence, since he will have a standing army.
(Let us note parenthetically that even a king is not permitted to maintain excessive armaments, and therefore too many horses—they are permitted only in the numbers needed for the chariots. The larger the country, the wealthier it is, and the more attractive it is to enemies seeking to conquer it, the larger the army needed to defend the state, and therefore the greater the need for horses and chariots. According to tradition, King Solomon violated this law.)