Birds come together in flocks for a whole variety of reasons, but the main ones are: FOOD. Flocks gather to exploit a plentiful food source giving them a better chance of locating scarce food. SAFETY. There is safety in numbers, especially if there is a predator about. WARMTH. Especially during cold winter nights, small birds like Wrens or Pied Wagtails will huddle together in a communal roost to keep warm. Without this, any individual would stand a far lower chance of surviving the night. Apologies for the capitals but that's how it appeared in "Birding with Bill Oddie".