Some manufacturers use sealed pots (usually full plastic enclosures which are PC-mount), but many of the panel-mount type are still the open style with a typical aluminum body. Dust can penetrate through the opening near the lugs and sufficient build-up will interfere with the wiper action and cause scratchiness or other problems; such gunk build-up can be cleaned. Auto parts stores carry spray electrical cleaner, and electronic stores used to carry similar called "tuner" cleaner for TV set tuner mechanisms and pots.
I have found that spray Brake Cleaner is less expensive and just as effective, it has a high vapor pressure so it dissipates quickly without any residue (which is why it used on brakes). I usually have some around anyways for cleaning other things (not just brake hardware).
Never use WD-40 on electronics components (or on anything in my opinion), once the carrier evaporates it leaves a coating that is a gunk magnet. For most mechanical apparatus such as hinges or locks, NOT electronics, the silicone sprays perform much better than WD-40 in this aspect.
Also, pot bodies made from steel and not from aluminum can rust (aluminum does corrode to a certain extent), and the better steel pots would have a protective lacquer coating for prevention.