Pencils that are sharp have a sharp point at the end. For something to be pointless is for something to be without direction. Pointless can also be understood literally, something without a point. This joke is a play on the word point.
' ' My pencil is blunt , ' ' said Tom pointlessly .