Humor can be the best “medicine”. Anything that can made a sad person chuckle, even for a second, in the midst of their loss, is of great benefit.
That’s why we Jews find humor in adversity.