Most human beings do sweat hands especially on the palm. When this happens the person will not have a good grip of heavy objects because they will slide/slip from the hand.
<em>By applying the powder, you are trying to make the hand dry hence increasing the friction for a better grip. </em>
If the gymnast doesn't do this the parallel bars may slip from the hands and injure himself or herself.