Definition of ontogeny recapitulates phylogeny in English English dictionary
The physical, cultural, moral, or intellectual development of each individual passes through stages similar to the developmental stages of that individual's species, society, or civilization
For even if we accept that ontogeny recapitulates phylogeny, those responsible for the drafting of ancient legal documents were not children, and are hardly to be endowed with some form of infantile mentality.