The theory that eukaryotic cells are just a bunch of bacterial subsystems that happened to start cooperating is one of the cooler points in the biology iceberg. Up there with chickens descended from the T Rex for me.
https://www.pnas.org/doi/full/10.1073/pnas.1421402112
> The evolution of life on earth has been driven by a small number of major evolutionary transitions. These transitions have been characterized by individuals that could previously replicate independently, cooperating to form a new, more complex life form. For example, [...]
Archaeopteryx lived in the Jurassic, so it's not really possible that chicken descended from the T Rex. They're cousins though.
Archaeopteryx is offshoot in the evolutionary path leading to birds. It shares a common ancestor with modern birds but branched off in a direction that did not lead directly to them.