Why did my wasteland explorers trade out their weapons?

Assuming you're referring to typical shotguns (there are various types of shotguns with different damage ratings) and typical a typical mini-gun or plasma pistol, they traded their weapons because the new weapon had a higher damage rating (which, as far as I know, is the only stat for weapons). This happens automatically when dwellers locate higher damage weapons in the Wasteland.