Well birds like to eat worms, so let's just say that there is a big juicy worm crawling around in the grass one morning. The bird who get's to the worm first, is going to get to eat it.
SO the saying is just another way of saying 'who ever gets in first'
SO the saying is just another way of saying 'who ever gets in first'