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.
There is a threshold beyond which an injury becomes too severe and requires proper rest, an immobilizer, and physical therapy. It requires a little bit of experience to identify those injuries but below that threshold it's better to soldier through the pain with lighter intensity exercise that works the injured muscles.
A safe example is working through delayed onset muscle soreness.
How can my comment harm people? It didn't say that walking (any distance) is the only or the lowest exercise possible nor did I say that lack of exercise is the only explanation to begin with. Actually the opposite is implied and taking a walk was an example for something that is usually not considered exercise.