Why do Kids Join Gangs?

I believe that kids join gangs because they are not involved in enough structured activities. I think also that they are looking for a family. Maybe they aren’t happy at home.