What is the science behind a rosin bag?

The rosin bag is used to by the pitcher to keep his hand dry if it gets sweaty in the sun or throwing to many pitches