I spent a bit of time as a "turnkey" early in my career, certainly not the length of time nor with the intensity you did. But, I cannot buy into the idea that a prison is a microcosm of general society. I choose my acquaintances and refine that list when selecting friends, a mere handful, as I am intolerant of "hard keepers" or needy people. I simply do not have the time to cater to people. Only family gets that kind of attention.
Prisoners are penned in with others, generally do not select where they will fit in, that is done for them. They must learn an entirely different set of social rules if they are to survive relatively intact. Are the behaviors similar to the outside? Superficially I suppose. But, life on the inside, I speak generally, is much more intense, discipline is enforced with a heavier hand by the inmates, choice is severely limited. So, while I'll concede to certain behaviors being similar, the intensity of living in a prison is very different to the accommodating behavior of society. My time working in jails, I do not like the term corrections, short as it is, was about the time various sociologists became apologists for psycho's and sociopath's behaviors, trying to excuse aberrant behavior.
A prison population lives by different rules or, at the least, in a different environment than the outside. This is especially true in prisons where the inmate population actually runs the institution within the walls.