Because of the way that the balancing bird is spreading its wings, it is able to distribute its weight in such a way that it creates a center of gravity right below the beak. Having the center of gravity below the beak allows the bird to be balanced on a finger.