Setups

A joke needs a setup so the punchline can land.

Being the joke and asking the dumb question is another kind of setup: It allows another to give the smart answer.