That's not to say mathematics can't be motivated by particular problems the student is trying to solve. I taught myself trigonometric because I wanted to do 3D graphics on my Apple ][.
But I didn't ever ask when I was going to use 3D graphics later in life.