Probably late to the party, but here it goes:
PB is not only the creator of the Candy Kingdom, but also the creator of Wildberry Kingdom, Breakfast Kingdom, Hotdog Kingdom, Palace of Nuts, Veggie Village, and probably more.
PB created Lemongrab. He is NOT candy. He is a bioengeneered sentient fruit man. And Lemongrab eventually defected/was exiled from Candy Kingdom and created his own government. PB eventually engineered citizens (or "accidently" left the formula for creating life with them) to be governed there.
This is only the latest of one of PB's advisors who were driven away to create their own land.
Over the centuries, PB created new candy people who were more capable than the rest. Those few were not dumb and fearful like most. Citizens like Peppermint Butler are among this class of candy citizen. But, few are as loyal as Pep But.
Lemongrab, Wildberry Princess, Breakfast Princess, Hotdog Princess, Duke of Nuts, and others were all once employed under the Candy Kingdom system of government. Then defected/exiled into other lands to govern on there own, while PB plants loyal citizens in their lands to maintain a level of control and stability.
P.S. the art of the map is NOT mine. I sae if from another redditor:
https://www.reddit.com/u/HakuNa_MMT/s/7zmgUHaEfM