The biomechanics of turning the pedals is presumably similar enough on the flat and a hill. And gears mean it's not about whether you're better pedalling quickly or slowly. So I think the only remaining answer is: psychology. Some people put their all into hills, others less so.