Unfortunately it's very hard to unshackle from that life and I imagine your friend probably encountered much difficulty trying to help the folks in prison. Even if you don't feel like you can replicate his efforts, I'm sure you can do small (or big) things to support him or initially volunteer in an area you're more comfortable with.
The question is in the why. What happened that someone committed a crime? And was the crime that awful to begin with? Wozniak and Jobs did phone phreaking in the 70s. Didn't get busted, but only because the cop didn't recognize a blue box. Something simple such as cannabis isn't decriminalized in the USA yet, yet the prisons are full with cheap labour... I mean, prisoners who possessed or sold cannabis. In my country, guns are pretty much illegal, and cannabis is decriminalized. The amount of robberies and shootings on schools is near 0. The amount of people in jail due to cannabis is also near 0. Talk about creating basketball players out of nothing.
It reminds me of a time when I went to a school in Philadelphia for foster children. These children were between foster homes, generally because they were abused in previous situations. Some of these kids were borderline feral; one, who had been set afire by previous foster parents, was one of the most balanced and normal kids I ever met. Probably, much like hospice care for the workers in this story, that experience has stuck with me.
I don't have any real comment, just that I hope these inmates find peace. Both the caregivers, and the cared for. I'm glad both are there for each other.