"Blessed be the God and Father of our Lord Jesus Christ, the Father of mercies and God of all comfort, who comforts us in all our affliction, so that we may be able to comfort those who are in any affliction, with the comfort with which we ourselves are comforted by God."
2 Corinthians 1:3-4 ESV
We humans were created with the capacity to receive and give comfort. We live in a world where we need it. God is eager to provide comfort to His children in all circumstances. In bringing comfort to those in trouble, we glorify God.