I don't think it's accurate to say mathematics is always art. Two theoretical fields in particular: fourier analysis, which came from wanting to solve heat flow equations, and probability, which came from wanting to win at games of chance, come to mind as applied math migrating to theoretical