Good Loss

Is there such thing as “good loss”? What is “good” about loss? What is good about the gut-wrenching feelings of failure, disappointment, and lost hope?