Hermit crabs choose their shells based on several factors such as size, shape, weight, and fit. They look for a shell that provides enough space for their body, is comfortable to carry around, and offers protection from predators. Hermit crabs are known to try on different shells until they find the one that suits them best.