Bioelectric therapy prompts the body to produce chemicals called endorphins, that decrease or eliminate painful sensations by blocking the message of pain from being delivered to the brain.
https://www.webmd.com/pain-management/guide/pain-management-treatment-overview#3