Why animals live in groups?

Animals that live in groups can defend themselves better than the animals live in solitary. Animals live in solitary means animals live alone by themselves.