Comedy is intimately connected with the state of well-being. Feeling delighted teaches us that the essence of being is exactly that - well-being. In this respect, delight is a consciousness of well-being.
The evolution of thought is a continuous refinement of emotions, humor being one of them. After time, deep, intense, and sometimes overwhelming emotions progress toward refinement, culminating in a distinctively good-humored phase.
While critics differ as to what constitutes good humor, the subsequent improvement in behavior indicates, for example, that hedonistic merry making of the mind is quite healthy. In other words, the reactions people have to comedy elevate the state of it.