That's not quite true. Take cellar spiders for example. They are evolved for living in caves, which put a great constraint on where they could live. But we came along and covered that planet in perfectly good "caves" for them and now they are one of the most widespread spiders there are.
So they are quite capable of living outdoors (unless you count caves as indoors), but without us there would be a lot fewer places for them to live.
Other spiders might use the indoors to extend their life span. Tegenaria spp. for example are mostly seasonal in the wild (meaning, they only live for one year and only the offspring makes it to the next year) but indoors some have been reported to be up to 7 years old.
So it's not like that they unsuited to live outdoors, it's just that indoors suits them much better. We usually call these spiders "synantropic".
