It is a consolation to the wretched to have companions in misery.
A pleasant companion reduces the length of the journey.