His servants are asking for less work, and he doesn’t know how to respond. So he asks for advice.
To be fair, he asks the elders first, but didn’t like the answer they gave. He’s the king, so why does he have to be the one who should bend over backwards for the sake of other people? So he asks the youth next, and smiles.
This was his generation of people; they understand him much more than his elders.
It’s not until he suffers from the repercussions of the bad advice that he finally learns understanding and wisdom are two completely different things. But he learns from this lesson, just this once.
There are many, many more lessons that he’s been given, and whether he learns from them or not is reflected in his actions.
He wins some, he loses some. Just like everybody else.