Nerves from the top of the neck and nerves from the head meet on the same relay cells, where the brainstem meets the spinal cord. That part is anatomy.
In rats, irritating a neck muscle made those cells fire harder to signals from the lining around the brain. In people, numbing tests show that pain from top-of-neck joints can be felt in the head.
That a stiff joint feeds that path in your headache, and that freeing it calms it, is reasoned. How you respond to care tests it.
Ask your chiropractor: which neck joint do you think is involved, and how will we check?