And it is between cell's type that are vastly different, one relying on photosynthesis, the other uses cell respiration. I am wrong?
Similarly, humans are quite different from whiteflies, although the difference is put into perspective when you consider that we have something like 40% commonality of genes, depending on how you map homologues.
How the plant gene got into the whitefly is a deep mystery that happened long ago.
If we go back even further in evolutionary history, insects, humans and other eukaryotes are descended from prokaryotes. The organelles of eukaryotic cells such as the mitochondria of animal cells and the chloroplasts of plant cells were once individual prokaryotes which merged into colonies and formed eukaryotic cells through endosymbiosis.
Even today, eukaryotes live symbiotically with prokaryotes in a way that is impossible to disaggregate. You have as many prokaryotic cells living inside of your shirt and pants as you do eukaryotic cells, with trillions of gut bacteria responsible for keeping you alive by pre-processing the food you buy from the supermarket and restaurants into nutrients and amino acids that your actual body can utilise.
Whiteflies also have parasitic and symbiotic commensal bacteria that are integral parts of their organism. Perhaps one of those gut bacteria, or a respiratory parasite transferred that plant gene millions of years ago in a freak occurrence. Or maybe it happens regularly and systemically.
With gene sequencing only becoming widely available in the last decade, scientists are just beginning to isolate and identify examples of gene transfer like the one in this article.
Don’t forget mitochondria, the cellular organelles that are responsible for cell respiration:
> Mitochondria and chloroplasts likely evolved from engulfed prokaryotes that once lived as independent organisms. At some point, a eukaryotic cell engulfed an aerobic prokaryote, which then formed an endosymbiotic relationship with the host eukaryote, gradually developing into a mitochondrion.
https://www.nature.com/scitable/content/the-origin-of-mitoch...
The bacterial residents of mealybug have lost the ability to make crucial proteins, and instead rely on the mealybug to produce them. It never had those genes in the first place, obtaining them instead through HGT. It's thus posited that eukaryotic organelles such as mitochondria and chloroplasts transferred genes to their hosts as well.[0]
[0]: https://www.quantamagazine.org/cell-bacteria-mergers-offer-c...
This is what the molecular apparatus looks like from the surface membrain of a bacterium.
https://youtube.com/watch?v=ihlFqOK5cZM