We would do well to explain the relevance when quoting scripture, that is, if it is not immediately obvious.
The answer to your question is history. History of good government, to be exact, a good king. These things are written for our example.
Ron Paul on the Prince of Peace
Laws in the Book of Deuteronomy: Translated and Categorized