There's definitely some of that.
>If I may ask: how are the sprint tasks different from the other small things you feel compelled to do?
Sprint tasks are almost always about new features. The other tasks are more about maintenance and tech debt.
For example, my Sprint task will be about feature X. When I'm adding tests for X, I realize this particular repo has been neglected and is using very outdated dependencies, not following CI best practices we're using everywhereetc. So doing all that slows me down but I feel it's the right thing to do. Others disagree and don't see any problem with that.
Or our monitoring system started to spill out false positives a lot (or I took a look at that just this week), and I need to adjust things so the oncall doesn't keep being woken up unnecessarily. Or worse, they just keep pushing the ignore button.
Or the code I'm working on is using a database that's behind updates and is missing security updates.
There's a lot of yak shaving if I'm to look at the whole thing and feel proud about it.