You open the front door. Your friend walks in, and before they even cross the threshold, it comes flying out of your mouth: “Sorry, the place is a mess.” You say it, even though the living room looks perfectly fine. Sometimes you say it even when the house is clean.
Here's something worth noticing: the people who do this most reliably are rarely the ones with the messiest homes. They're usually the ones whose mothers probably had said the same thing, years before, at the door of a completely different house. The apology has not followed the dirt. It's been following the family.