Hard to know really, isn't it? What is it you are shocked about? I work in a prison and can tell you we cant chuck em out soon enough! They have to give us reasons for keeping them longer than anticipated.
He should have been offered "purposeful activity" and rehabilitation. He probably missed out during the covid years, which would not have helped, but apart from that, I expect he was given opportunities. Most prisoners are. Not as many as we would like, probably, due to shortages in funding and staffing.
Suicide in prison is a terrible thing, and we do what we can to prevent it, but it is quite often due more to what is inside the prisoner than what is outside