I think the bike is a more efficient way to climb, despite the added weight of the bicycle itself, because though it might not feel like it, you do get some rolling momentum even uphill. On the other hand, you typically hike at a much slower pace, so the effort is spread over a longer time and doesn't feel as intense. Climbing a hill on a bike is probably closer in effort to running stairs than to hiking.