In the 1870s, Ernst Haeckel, a German biologist and naturalist, developed the idea of “evolution as progress,” which assumes that all nature is moving toward a final goal: human beings.
https://curiosity.com/.../recapitulation-is-the-debunked-theory-that-embryos-repeat- evolutionary-ancestors
Recapitulation Is the Debunked Theory That Embryos Repeat Evolution.
Haeckel's biogenetic law, as he called it, was a form of recapitulation theory that said each developmental stage of an embryo represents the adult form of one evolutionary ancestor. ... For example, human embryos develop "gill slits" around the fourth week of development, which eventually develop into lungs.
Ontogeny is about the development of an individual. Phylogeny is about the evolutionary history of a population, and how it is related to others