Heroes were at one point put in jail, either remain, has since been released, or escaped. While prisoners are to be seen as villains, most aren't and some are victims are corrupt officals (wrongful imprisonment). Sometimes, a prisoner does show remorse for what he or she did and wants to makes amends. At times, some heroes are supported by fellow inmates and they're respected by them.
NOTE: These are those non-villianous characters only, NOT true villians.