Due to lack of physical activity, some of your back muscles goes silent. This creates muscular imbalances which is main reason for this problem.
Consult a physiotherapist for assessment and activation of muscles.
Next Steps
Avoid sitting for longer periods, start moving as little will do much benefits.