It’s one reason why placebos are so effective in these conditions: our bodies learn the appropriate physiological response to pills we take and will subsequently repeat it, for example releasing pain-killing endorphins, even if a pill contains no active drug.

Source: You can train your body into thinking it’s had medicine | Mosaic