Why is CBT an effective treatment for pain?