Some might call this psychosomatic, but I feel like calling it like this is maybe reversed or at least sounds reversed to me as the physical state triggers the psychological condition and can then start a vicious cycle, which is only broken on the physical level.
edit: Of course don't go full tilt and be sensible with your physical exercise after not doing anything (lying in bed) for a week or more. Even a walk in the park can be exercise!