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 zone (marked in red) for the liver and gall bladder.
(Overview and more zones of referred pain)