How did bird babysitting co-ops evolve?

The common understanding of evolution is that it is a battle for survival: one must either “scrunch or be scrunched,” as Nicodemus Boffin, the Dickens’ character, famously says.