why do birds fly in the evening?
One reason they often circle round and round before roosting is because there is a hierarchy of warmth, safety and comfort (e.g. from the edge to the centre of the flock), and the birds spend a long time sorting out who gets to sleep where.