There is pretty clear evidence from neuroscience that pain has a significant emotional component. The evolutionary benefit is to having an emotional component is that it makes it less likely that the animal will try to override the pain.
Yes I agree with that theory, but I don't see how that proves that pain is completely decoupled from physical damage, and just randomly happens to some people solely because they are upset or "disturbed".