I’m pretty sure it’s an unintended effect. You can be doped out of your mind on opiates, with 0 pain, and still wake up every 5 minutes because of a healing infection. It only lasts six or seven hours, though, iirc, so it’s not a big deal to wait it out by reading a book, crafting, or just Waiting.