Pain and fatigue exist to protect us from harmful activity
I think this is an area where thinking in psychobehavioral falls apart: the reason is not the function. Biologically, pain and fatigue serve those roles, constructed by evolution over millions of generations for reasons that promote survival. But it's not their function. Evolution is not concerned with individuals, and does not care about logic or making sense.
Neither pain nor fatigue follow some logic where some brain process has determined: oh no, this could be bad, must protect. They are autonomic processes that are complex at the macro level, but mechanistically simple at the level they act on. Attributing sentient-level organism behavior to them is tempting, and is the core of psychobehavioral ideology, but to me is as misguided as anthropomorphizing natural phenomena. Nature does not weep when it rains, however poetic it may sound.
BPSers love to work those things out along with thoughts and behavior, and although some small parts can be influenced this way, they would work out the same even if nothing beyond the primitive brain is involved. Lizards and other animals lacking a complex brain very likely behave 99% the same as us at the biological level, even if they behave slightly differently. Same for someone in a vegetative state.
There are always situations where pushing against either is necessary. In nature, walking on a broken leg, pain, to relative safety is necessary. So is continuing a long trek, fatigue, towards where food will be next season. Seeing them as protective in the psychobehavioral sense isn't much different from animalism, or seeing signs in tea leaves. All animals do the same. Without thought.
To me it's a lot like when people make analogies between government finances and a household budget. They are budgets in the general sense, but this is about the only overlap between either concept. It's not coincidence that pretty much all the core ideas in psychobehavioral beliefs originated in a time when superstitious concepts, such as ESP, ghosts, telepathy, astrology and so on, were very popular. They have the same idea of tacking on human behavior and motivation onto natural processes that, at the smallest level, are as purely automatic and indifferent to what intelligent beings think and believe as water freezing.
It's also quite similar to the concept of stress, which has many different meanings, such as cellular stress, or mechanical stress (and its counterpart: mechanical fatigue). Human culture has created overlaps in how we talk about those things, but they really have nothing in common outside of our perception and the limits of language.