Well nerve crossing or misinterpretation of nerve signal by the brain does not happen all the time. In case it happens frequently then I guess it would be Multiple Sclerosis or might be Fibromyalgia syndrome. In multiple sclerosis, the Myelin sheath surrounding neuron when gets damaged causes certain problem with nerve signal transmission to the brain. But that is not the main cause. The main cause can be found in Neuropathy:
When nerve cells are damaged, perhaps by a temporary restriction in their access to oxygen, they too atrophy or shrink a little, thus the synaptic junctions widens. Just like with a spark plug in your car or lawn mower, if this gap gets too wide, the spark cannot make the jump. A normal sized nerve signal cannot jump this enlarged gap either, so the signal either does not get through or it gets misdirected to another part of the body and is misinterpreted as pain.
So I can say that the nerve cells in the place where you feel real pain fails to transmit the signal to brain via its neighboring nerve cell instead that signal passes through some other node randomly (or it might take the same path every time you touch the pain area) and signal the brain which gets misinterpreted and make you feel that you have pain in the misinterpreted region.