It can be a necessary conceptual truth that pains are painful without this ruling out the physicalist thesis that immaterial minds are impossible or the thesis that conscious states supervene on physical states. The necessity involved in these claims is nomological necessity, not metaphysical necessity (assuming that these are different).
Elliott Sober