means that
compassion for another person's suffering can develop into affection, although pity and love are not necessarily the same emotion.
When pity and love are close emotions; when you pity someone is not far from loving him or her., the saying “Pity is akin to love” is appropriate.