Swearing can increase pain tolerance and reduce the fear of being in pain.
The reason rubbing alcohol burns when applied to cuts is because exposed VR1 nerve cells in the cut, which normally detect burning hot temperatures, have their pain threshold lowered by alcohol, so much that your own body temperature causes the burning sensation.