Emotions are a reaction to the interpretation of one's environment. If someone perceives a lack of control, they'll feel anxiety. If someone perceives they are stuck, they'll feel depressed. If someone perceives things should have been different, they'll feel frustrated.
You can learn how to adapt to painful emotions, but you can also change your environment. "You cannot heal in the same environment where you got sick."