As per Aquinas, every joke is a disguised form of sadness. You can only laugh at something that is sad.