The star, Cheem, is formed as a nebula. Over time, it forms into a main sequence star while planets form orbiting it.
Unique in being a rainbow giant, Cheem was able to grow and progress along its life cycle incredibly fast.