Isaac Asimov famously wrote that the most exciting phrase to hear in science is not 'Eureka' but 'That’s funny.'
He meant funny peculiar. But funny ha ha is also sometimes present in a state of wonder that may (or may not) lead to systematic enquiry. And at such moments wonder can resemble a joke that we don't quite get. Sigmund Freud quoted Theodor Lipps:
a joke says what it has to say… in too few words… It may even actually say what it has to say by not saying it.
Image from kleinbottle.com