You do not need an accident. A spine joint can get stuck in quieter ways.
Sitting bent for a long time slowly stretches the soft parts around the joint. In animal tests, this made the deep muscles tense up and then switch off at the wrong times. Stress can keep neck and shoulder muscles working when they should rest. Then the muscles keep guarding, and the tissue around the joint gets short.
No one can say which of these happened for you.
Ask your chiropractor: what did you find, and what can I do at home?