We have wood floors that must be swept at minimum daily or it creeps me. We never wear outdoor shoes inside. And if what I sweep up accumulated in carpet...well yuck.
I’ve studied up a bit on carpets. The underlayment is toxic, the carpet fibers break off and float in the air and get inhaled, in winter the heat source burns them and creates toxins. Carpets if outdoor shoes are worn on them house more filth than sidewalks that at least get sun and ozone from the air.
Of course some carpets are not as filthy, depending on location and use. But shoes step on every manner of dirt, crap, spit, oils, etc on sidewalks and streets, and bring it into the house. And any spills - then mold happens.
I loathe carpets and cannot live in house with them.