What is the meaning of [If it were not for hope, the heart would break]

When things are very difficult, what prevents us from giving up in despair is
the hope that things will get better.