They don’t “turn off” pain. Likely, they either objectify it (i.e. dispassionately observe the experience of pain) or ignore it (i.e. focus on a separate sensation) or dilute it (i.e. focus on “nothing” or alternatively, the all-encompassing sensation of “being”, the “now”, so that the experience of the pain is not the sole focus of their attention).