I would guess that it directly affects the nerves where they travel through the wrist tunnel, but I’m just guessing.
I do know that after days where I have had caffeine, that night I have a tendency to sleep with my hands curled up under my chin, instead of a more relaxed sleeping pose, which I think is probably bad for the blood flow in my hands.