There are certain zones that have a nerval connection to certain organs. Diseases in these organs causes referred pain in these skin areas. (In German: Head zone) These zones exist because of nerval afferences and interconnections at the same spinal segment.
Shown here is the skin zones (marked in red) for the kidneys.
(Overview and more zones of referred pain)