God provided Israel with qualities they should desire in a king. In short, when the king ceased to be right with God, he ceased to be right for the people.
Thrones and empires are terminated because of the unruly evil of sin. As such, they rise or fall based upon their choice to sin or their refusal to partake therein.