It is nonetheless spectacular (I think) when looked at in purely mathematical and evolutionary terms: the flocking (or schooling) behaviour is protective against predators both in confusing them with a multitude of potential and constantly moving targets, and by giving the overwhelming appearance of a single very much larger organism; and also in the relatively simple rules employed by each element in this system, such as: fly as close as possible to the next bird(s) without colliding, changing direction as your neighbours do so, and try to stay away from the edge of the flock (you are more likely to be taken by predators on the outsides).
Nature has a way with these self-organising systems: which I believe we try to explain using chaos theory. Another example are humble sand-dunes which can form random but recognisably ordered patterns and moving systems over vast areas, and yet are formed from nothing more than the action of wind on countless, virtually identical, and tiny, grains of sand.
The most miraculous for me is in embryology where: the single cell of a fertilised egg divides in two, these in turn divide into four, four into eight, eight into sixteen etc... until there is a ball of nothing but countless billions of identical cells... on cue (and we don't yet know what that cue is) these billions of identical cells begin to organise and differentiate into skin, eyes, brain, toes, fingernails, liver etc... I might even go so far as to suggest that one way of looking at humans is as a vast colony of single cells... much like a flock of starlings :hippie: