In Lonely at the Top, the author identities the key variables to adult friendship as i) proximity ii) frequency of spontaneous encounters iii) things in common.
As a child, authentic friendship often occurs with relative ease as kids go to school they are i) within close proximity ii) seen regularly and iii) can play games on the playground/share low-barrier activities together.