“Learn to code” to solve problems

The suggestion above might sound very common but I’ve read a lot of article headlines suggesting people to “learn to code” and while I do not think that would hurt anyone I think many of those articles are missing the point of coding: solving problems.
I would have never learnt to code if I would have been able to find a software that merged GPS records along with heart rate monitor data. That was my initial drive and all of the code I develop, either big or small, still works like that.
Solving the first problem will make other problems available for a code-resolution but with no real problems to start with learning to code is pointless. In the long run learning yoga will have way an higher and more beneficial effect.

I appreciate your input