There was an Asimov short Sci fi story where it turned out all jokes other than puns were of alien origin. I don't recall the title but might be able to find it.
Here you go
https://en.m.wikipedia.org/wiki/JokesterPlot summary
Noel Meyerhof is a "Grand Master", one of a small cadre of Earth's recognised geniuses, who has the insight to know what questions to ask Multivac. But a computer scientist is concerned that Meyerhof is acting erratically. As a known joke-teller, he has been discovered feeding jokes and riddles into Multivac.
By computer analysis, the characters in the story investigate the origin of humour, particularly why there seems to be no such thing as an original joke, except for puns. Every normal joke is something that was originally heard from someone else.
The computer eventually tells them that humour is actually a psychological study tool imposed from without by extraterrestrials studying mankind, similarly to how humans study mice. They needed to isolate the responses to their jokes from original ones, so they "programmed" us to react differently to puns.
The characters of the story conjecture that figuring this fact out makes it useless as a tool, so the aliens will turn off humour. And suddenly nothing is ever funny again.