According to the cost of a survival of the fittest if a population of birds eat worms that they find deep under the ground by using their beaks which members of the bird population would be more fit
The birds with the beaks most suited towards digging and grasping. If they find their food deep underground, the beak would need to be able to push through the dirt and be able to keep the worm in it for consumption.