Pain is a signal of vulnerability
Doctors and patients alike make a crucial misinterpretation: pain is not a signal of body damage, but of vulnerability (possible future damage).
This coherently explains the placebo effect and other apparently irrational behaviors.