This is the Aristotelian principle of teleology, the manifestation of which is enclosed in entelechy.
Teleology is the explanation of phenomena in terms of the purpose they
serve rather than of the cause by which they arise.
Entelechy is the process of manifestation and evolution of beings : a being manifests (or realizes) entelechy when the "material" from which the being consists of, is transformed from a state of a potentiality to the state of realization (manifested in reality) due to the form that it inherited from the creator, so it (or in order to) fulfills the purpose (end goal - telos) of its existence.
It is obvious that these concepts are not compatible with the modern-current scientific way of thinking. But, by examining the definition of entelechy, I can not avoid making a comparison with QM.
In a similar way in QM all the classical concepts are, when applied to
the atom ... correlated with statistical expectations; only in rare
cases may the expectation become the equivalent of certainty ... it is
difficult to call the expectation objective. One might perhaps call it
an objective tendancy or possibility, a "potensia" in the sense of
Aristotelian philosophy. In fact I beleive that the language actually
used by physicists when they speak about atomic events produces in
their minds similar notions as the concept of "potensia". So the
physicists have gradually become accustomed to considering the
electronic orbits etc. not as reality but a kind of "potensia"... the
atoms or the elementary particles themselves are not as real; they
form a world of potentialities or possibilities rather than one of
things or facts.
Heisenberg, Physics and Philosophy.