I’ve been doing heavy squats and deadlifts for the past 15 years and I’ve never experienced back pain. I can’t for 100% certainty credit lifting for this but I’d be amazed if it doesn’t play a factor.
EDIT: And hanging. You don’t even need to do pull-ups. Just get a bar from which you can hang daily. It decompresses your spine but also flexes your shoulders. We’re apes after all and hanging is what they do all day every day.
Complete waste of time with no positive health benefits you say?