Because the speed on a climb is less, there's less inertia and that changes pedaling mechanics and thus muscle use. You're also in a slightly different position, though that's less important. Your cadence is also likely not to be freely chosen. Also because you're going more slowly, there's less cooling wind so it's harder to get rid of heat.