In the wild, almost exclusively. Ball pythons are caught in the wild and the various morphs represent unusual specimens caught in the wild, or with recessive genes some simply showed up with breeding, often through inbreeding.
Few morphs have shown up spontaneously in captivity. Check out ralph davis's website amd look at the platinum, a wild import that lead to lessers and het daddies.