Honestly why do they do anything? lol It's a bit like chickens (and ducks) loving foam. I don't think we'll ever know what is really going on in their heads. I'd theorize they either thought it was some sort of worm, or upon investigating it and finding it was hard decided to add it to the collection of bits in their gizzard used for grinding up food stuffs.Why would a duck eat nails?