Yes it can very much be both! Or even more reasons, as you say.
The original comment I was replying to said their reason was "I just wanted to learn a new language", which is what I disagreed with.
Re:Why We Switched from Python to Go (2021)
by MathCodeLove on Monday May 30, 2022 @07:56AM
(#31558062)
Fair enough!
It doesn't have to be a single variable equation. I can learn something both to learn it and for practical reasons.