People often use humor to cope with difficult situations. Sense of humor is something fairly necessary for a person to have. Many prefer people with sense of humor, and their ability to deal with difficult situations could be a reason why. It can create a bright atmosphere when there is awkwardness, and contributes a smile to people in grief.
Fist of all, a sense of humor can be very helpful in avoiding the awkwardness in certain situations.