Because generally, when mashing, it's because the hill is steep. So you pedal really hard. So much so that the power output goes up quite a bit. Thus the for the same power to the wheels disclaimer.
If you pedal just as hard on each pedal stroke but at a higher cadence, your heart rate should jump even higher since you'll put out even more power.
__________________
If you notice this notice then you will notice that this notice is not worth noticing.