Why these voids specifically — the mechanism
Every animal that ends up in an attic or crawl space is solving the same basic problem: where to be warm, dry (or usefully damp, for a crawl-space rodent), dark, quiet, and safe from predators. An attic checks nearly every one of those boxes at once — insulated, elevated, undisturbed, and dark — and a crawl space offers damp, protected earth close to wall voids that rodents in particular favor. Neither space is chosen by accident; it's the closest thing available to an animal's ideal shelter, minus the tree cavity or burrow it would use in the wild.
Entry is the other half of the mechanism. Rodents can exploit gaps as small as a quarter inch; squirrels and raccoons use rooflines, vents, and soffits; crawl spaces are entered through foundation vents, gaps around pipe penetrations, or unsealed access doors. A house with no accessible gap at any of these points is a much less realistic target, no matter how appealing the space inside would otherwise be — preference alone doesn't get an animal past a sealed exterior.

