Endosymbiosis occurs when larger prokaryotes envelop prokaryotes that perform aerobic metabolism (later known as mitochondria) and prokaryotic cells that do photosynthesis.
These "now" mitochondrion's "came to realise" that they really can not live without the bigger prokaryotes that swallowed them, and therefore they stayed with them.
Learn more:
https://brainly.com/question/15829977?referrer=searchResults