Some researchers have proposed that mitigating uncertainty about ourselves is one big reason people seek to join groups.
Uncertainty-Identity theory, proposed by psychologist Michael Hogg, argues that joining a group ameliorates the stress we feel in uncertainty. Under this theory, we’d predict that people will tend to form stronger group bonds when something is leading them to question who they are, and when a possible group presents a compelling opportunity for certainty.