Other criminals can teach him how to not get caught or recruit him into larger organizations. Prison is like a startup incubator for gangs. When you put a bunch of people with similar interests in one place it's a great networking opportunity.