Hermit crabs do not grow their own shells. Instead, they are scavengers that seek out and occupy empty shells left behind by other sea creatures, most commonly snails.
Because of this, the type of shell a hermit crab has depends entirely on whichever empty shell it happens to find.