The new truck gas engines are designed with such a high rpm powerband these days. Yes, they make alot of horsepower, alot more than the older gas engines of similar size, but it's made wayyy up there in never never land rpm range, instead of down low, below 3000 rpm, where it can be used.
To top it off, the truck makers don't give the trucks enough gear ratio to ever reach those high rpms, at a reasonable towing speed. They'd have to be spec'ing the gas trucks with 4.88's and 5.13's, instead of 3.55's and 3.73's, to get those engines into their high horsepower rpm ranges, at speeds reasonable for towing.
The horsepower numbers look great on paper, but the puny gearing ensures that the engine's potential is never reached, in a real world towing situation.
So of course, the diesels, with their gobs and gobs of very low rpm torque and their much more reasonable horsepower rpm ranges, are going to handily out-pull the gassers, at reasonable road speeds, especially in a heavy, mountain towing situation, despite the higher horsepower of the gas engines.