Makes a lot of sense. I’m glad I grew up with dogs - they surely exposed me to all sorts of things as a child that helped build my immune system. Single data point, but I’m allergy free, no asthma etc.
Maybe single data points aren't useful for the discussion.
That's just a normal upbringing.
So are all of my siblings though, so there might be more of a genetic component to this.
While I believe some exposure helps build resistance ultimately your overall health will be influenced by stuff beyond your control AND your lifestyle/activities combined.
I always lived in very clean houses and no one of us ever went barefoot. (We did change shoes for slippers or equivalent rather quickly though).