String theory is not the only theory that can accommodate extra dimensions, but it certainly is the one that really demands and requires it.
One of the strangest features of string theory is that it requires more than the three spatial dimensions that we see directly in the world around us. That sounds like science fiction, but it is an indisputable outcome of the mathematics of string theory.