I don't think that's an earthworm, but rather some sort of a thing attached to the eagle's feets. So that it can land on your hand maybe and you can grab it? Just guessing, but I've seen people talk about this very thing and the consensus seemed to be that it wasn't a worm, but something else.