"Shrewd" is defined as "characterized by keen awareness, sharp intelligence, and often a sense of the practical." In The Adventures of Huckleberry Finn, Huck shows these characteristics of shrewdness more often than the king or the duke.
Huck and Jim listen to the life histories presented by the king and the duke with rapt attention and are happy to play the roles of respectful subjects by addressing them with their royal titles, serving them their meals with due decorum, and giving them the best areas on the raft for their beds. However, Huck realizes the truth of their situation quickly.
It didn't take me long to make up my mind that these liars warn't no kings nor dukes, at all, but just low-down humbugs and frauds. But I never said nothing, never lot on' kept it to myself' it's the best way' then you don't have no quarrels, and don't get into no trouble.
Huck remains practical throughout the time that the king and duke are in his life. He knows they aren't what they say they are, but understands it's best to humor them. He understands that Jim wouldn't be able to comprehend the true situation, so doesn't go into details with him.
What was the use to tell Jim these warn't real kings and dukes? It wouldn't a done no good; and besides, it was just as I said; you couldn't tell them from the real kind.