This is the fallacy of composition. Because a small subset of abstract math has been found useful centuries later, spending money on any area of mathematics is justified, regardless of opportunity cost and the fact that physics would eventually lead to the development of the same mathematical concepts.