God gave the Israelites what they desired
The Israelites wanted a human king and God gave it to them. 1 Samuel 8. He even anointed a human king for them, Saul, but they had to receive the curse along with it because God said that they had rejected Him and desired a human king in His place and they would have to serve the king and the king would rule over them.