As Richard Hamming said "the purpose of computing is insight not numbers" - the same could be said about the purpose of mathematics in general, understanding why theorems are true, not just knowing the bare fact that they follow syntactically from the standard axioms.
This is complicated, and with all due respect to Hamming and his genius, things have multiple purposes at once, and either-or thinking does not help here.
If computing was as relevant to modern economy as insight into Plato's philosophy is, Bell Labs that employed him and many others would likely never exist.
Same with mathematics. There would have been much fewer mathematicians, and worse paid too, if their work was economically as valuable as reading cuneiform is.