Humor is a great part of the Jewish culture.  The humor was a way to get around the centuries of mistreatment. It was their way to laugh off the burdens.