Ear wax, sticky stuff that it is, traps anything foreign that flies, crawls, or is blown into the ear canals. Dirt, tiny bits of plant material, small insects, bacteria, and so forth are immobilized by wax.
Deeper swabbing is potentially risky.
How to tell what sex your hamster is.