Villagers are mysteries beings able to not only do this, but sleep in the nether, make matter out of nothing (Where do they get the materials to make all the stuff they trade when there locked in a 2 by 1 block prison?) and reproduce despite them all being the same gender.