The connection is that suffering which is created by one's own unconscious narrativity comes to an end as you become aware of it. And that's no small part of the total share. But physical and circumstantial suffering aren't abolished.
Aurobindo, for example, did teach that even physical suffering is a part of ananda and a major part of his personal efforts in Integral Yoga was regarding that subjective transformation of his experience.