God did not want the Israelites to have human kings over them, but he knew they would be tempted to do so. Because of this, He provided rules to govern the behavior of any future kings. See Deuteronomy 17:14-20.