The developmental basis for germline mosaicism in mouse and Drosophila melanogaster