It would not surprise me if some stars have a certain composition such that when their burning sun phase ends they leave a core that goes on to become a planet around some other star, and that some “gas giants” are also, strangely, a former sun that went into a massive “cooling” phase as it’s sun phase was ending.
