While you are correct that the majority entering jails even briefly, much less prison, don't like that situation, there are a minority that enjoy at least for awhile, the free food, housing, medical care, etc, as a respite from whatever street life including homelessness,
As noted, so does most...