Where did chloroplasts come from?
There is a theory that chloroplasts and mitochondrias were once a free living bacteria that came inside a eukaryotic cell and started a mutual relationship with the eukaryotic cell. The bacteria got to have a shelter, and in return, the eukaryotic is able to create more energy by mitochondrias, or be able to convert from co2 to o2. It is only a theory though.