Common with OA
One of the common symptoms of joint osteoarthritis
is that the joints become stiff and painful after brief or extended inactive periods.
Usually when you get up, you will need to wait a few moments, then the first few steps are more difficult, but once you get going it becomes less achy. This again happens after sitting down for a while. Evaluation for osteoarthritis would be a start.