The joke is a play on words.  'Guessed' sounds like 'guest'.  A host is the person who arranges and invites people for an event, while a guest is one who attends the event.
' ' You must be my host , ' ' Tom guessed .