It is the result of selection over the years by the breeders. Imagine you are a commercial breeder and you have a "litter" of 500 fry. Are you going to pick out the 490 grey fish or the 10 orange fish? In most cases the colored fish are chosen for purely aesthetic reasons.
Now, in the wild, those 10 colored fish would be the first to be targeted and predated upon due to their conspicuous coloration. That's why wild fish are going to produce almost entirely grey juveniles -- for camouflage purposes when predation is heavy. But in captivity someone has picked out a few fish that color up quickly, breed them to each other, get more early color in the next batch, and so on...... Whether that was a strategic choice for marketing reasons (i.e. a brightly colored juvenile will sell better) or just happenstance is anyone's guess (probably the former!).
In the wild, 90%+ fish stay grey colored, and those few that due eventually color up breed almost exclusively at very deep depths. It is thought their bright colors increase their visibility to their fry at those depths. The fry of these bright fish would be camouflaged at least until they reach a size where they are less apt to be eaten by the various piscivores in the lake. In most cases, that size would be somewhere north of 4 inches or so.