Souls in purgatory are unable pray for themselves, they must rely entirely on others to pray and make sacrifices on their behalf.
Prayers for the faithful departed pleases God, who uses our supplications to purify these souls that he loves.
It is an act of mercyon our part for those we have known and loved, for those who are not remembered, and for those who have no one else to pray for them.