Philosophers have long puzzled over the role of humor. The best explanation I’ve heard so far is that we laugh at something that doesn’t make sense or the sense of it changes so rapidly our mind laughs trying to make sense of it. So humor is just our complex way of figuring things out or just putting our hands up puzzled.
Let us remember how humor is an important part of our rational faculty dealing with the absurdity of the world at times. Sometimes the best sense of humor is had by the person who laughs at himself. I leave you with this account of Chrysippus dying from laughter:
One ancient account of the death of Chrysippus, the 3rd-century BC Greek Stoic philosopher, tells that he died of laughter after he saw a donkey eating his figs; he told a slave to give the donkey neat wine with which to wash them down, and then, “…having laughed too much, he died (courtesy Wikipedia)”