The plan to use of area denial weapons, in the face of an advancing enemy, was probably a necessary cold war tactic. What the Russian exit from Afghanistan, and the coalition occupation of Iraq has created is not just an unintended hazard to non-combattants but is an issue for own forces too.
Apart from the direct anti-personnel hazards ther is the possibility that these weapons can be harvestedby insurgents and targetted against the occupying troops.
These anti-personnel weapons are not the only hazard to occupying forces, the number of dud munitions creates a further hazard and unwelcome supply to insurgents. IIRC, in Vietnam the VC used both unexploded and captured 105mm shells to bombard US forces. They didn't use them in guns either.