The body can you give you unwanted pain as well. Your body can do things totally out of your control that really "bug" you, like teeth that hurt, hiccups, stitch, pins and needles or cramp.
Some get a headache or painful teeth when they eat or drink something cold. This is due to sensitive nerve endings in teeth. You can use special toothpaste that takes months before it becomes effective. In the mean time stay away from cold things.
Hiccups is caused by eating and drinking too fast, or taking in air. It can also be caused by becoming suddenly nervous. The only real known cure it to take beta blockers. Though you have to wait until the medication takes effect.
A stitch occurs during exercise when your body tries to tell you that is enough. Stopping the strenuous activity will "cure" the malady.
Pins and needles happens when the blood supply to nerve endings in the limbs is constricted. Get up and move around then normal feeling will return to the "dead" limb.
The cause of cramp is unknown. Dehydration and being unfit are not factors - well hydrated supremely fit sports people get afflicted with it. Spasmodic constricting muscles hurt. The only thing you can do is wait for them to settle down - perhaps more beta blockers.
Your body is a complex machine. Look after it. Service it well. The model you have has its own quirks. Just learn to live with them.