Shoes drag in dirt and moisture, sand and stones, dogshit and all those unpleasant thing. Where I live, wearing shoes into someones home is to say that you barely consider it a home at all, or that your host keeps such a dirty home that it doesn't matter.
In Sweden, disrespecting someones home...