I have read elsewhere that invasive viruses that infected germline cells (and were passed to progeny) enabled the evolution of the placenta.
https://pmc.ncbi.nlm.nih.gov/articles/PMC6177113/