It can be a reaction to the cold weather with a condition of arthritis
The most common answer is arthritis. Usually people with arthritis have more severe pain when the weather gets cold. It's just the cold air stimulating it in your bones. Try seeing a doctor, they might have a solution or something that can help it.
I get the same thing, its pretty annoying. I used to play basketball when I was younger and now both my knees crack and hurt with certain movements so I think its bcs of that