Buddha dealing with pain
Enlightened beings are not bothered by pain. But if you try to sit through severe back pain, it could lead to further complications. The body requires lying down to recover from back problems. So it's the sensible thing to do. When the Buddha is resting, he usually resides in the Jhanas. Even when the Buddha is not resting, it is said that he enters the Jhanas between every sentence he speaks.