Just wondering

How does deodorant help with razor bumps after shaving ? I seen someone comment that they use after shaving