A joke in dreams can be an image presented in an odd way.

It is as though the mind develops the oddity in order to have us remember what it is attempting to present.