I've always wondered about that, did they evolve after the invention of houses?
[Edit: I googled around, and this was an interesting article from Rod Crawford, the curator of arachnid collections at the Burke Museum of Natural History & Culture, Seattle talking about house spiders being traced back to Roman times. https://www.burkemuseum.org/collections-and-research/biology... ]