What's funny about a foul-mouthed gnome? Nothing in any way surprising about it in a gnome - after all garden gnomes are said to be descended from phallic Roman statues.
A nun swearing, for example, might have the humour of incongruity - but a gnome, so what?