We don't let people kill themselves in prison. The state has a duty to protect the health of people in its custody, even against themselves.
Few duties are observed as selectively.
I would also argue that if the government focused more on not torturing people and instead treating them with basic human dignity, it wouldn't have to deal with quite so many hunger strikes.
But I also have a healthy skepticism for potentially self-serving claims made by people facing criminal charges.