Why do groups form?

Groups are formed for a particular reason of achieving a goal.