Answer:
Well My answer would be that All these great kings were given a Gift of the Knowledge/Wisdom from God. And that he himself anointed these kings. It was his plan to do so.
Explanation:
To place legislation that has recently been passed by a legislature on a ballot for a popular vote.