To be compassionate by recognizing and striving to alleviate one's own as well as others' struggles and challenges can take a tremendous amount of courage.
Courage to overcome the shame or blame or fears that keep us and keep others sometimes trapped in a cycle of unhappiness or inability to achieve our goals and realize our greatest dreams.
Courage to feel what it feels to be hurt, weak, betrayed, or the array of other feelings underlying suffering. Many times people are afraid of having self-compassion or compassion for others because they think it can be very emotionally taxing or draining.
The reality is being compassionate can enable you to be resilient - to bounce back after recognizing and striving to alleviate your as well as others' struggles.
I think being resilient may come from having a tremendous amount of gratitude after you've recognized your own struggles and the strength you had and have to overcome them and the struggles others encounter and how blessed we really are.
Resiliency also comes about as a result of realizing that you do have the ability to overcome your own, as well as enable others to overcome their challenges, and to rise stronger after 'falling' for some time.