When it comes to dirty jokes in children's cartoons, the king is and probably will always be:
Apparently what writers used to do is insert jokes that were deliberately too risqué so that the censors would catch them; this would mean that the less crude replacements they came up with were more likely to get through.
This joke was one that was supposed to be caught.