It helps them grip the ball. Batters sometimes like for pitchers to do it because it lessens the chance of them being beaned.
So why are batters allowed to use it to get a better grip...but not pitchers? Why not ban the substance all together?