Sitting is the position where all the load of your upper body falls on the lower back and poor stooped posture makes the load much more than your weight due to gravity acting as added force.
Prolonged sitting fatigues your postural muscles and they start hurting. Also too much force on discs makes them degenerate and cause pain.
A detailed exercise program prescribed by an orthopaedic physiotherapist
can help strengthen back and reduce pain