We taught guitar and other instruments in prison for over twenty years; it provides purposeful activity pleasure and a sense of achievement. Its value (IMO) is huge, and helps in many ways both during and after the sentence. Many prisons have music as a strong part of their programmes.
Didn't Joe Pass learn in prison?
Stu