Why do children tattle?

When young children see a peer cause harm, they often tattle to a caregiver.