When a colony becomes a city, its owner gains a free territorial core on it. If the owner has a colonial nation in the same colonial region (or becomes eligible for one with the colony finished), the core is instantly granted to the colonial nation instead (and ceded to it).