Standing while climbing gives your muscles a break because you use different muscles.
My sons often stand when they climb hills with me because to sit at my speed up a hill is too slow and difficult for them.
I am learning to stand for longer and I stand near the top to give me a little oomph to get over hill more quickly. However, as soon as I sit my legs hurt... its just a matter of more standing and getting used to it I guess.