God had commanded in his laws that if the first child of a couple was a boy, his parents should offer as a sacrifice to God two turtledoves or two young pigeons. So Joseph and Mary gave the priest two birds so he could offer them.