It was confidently believed that the scientific successes of the industrial revolution could be carried through into the social sciences, particularly with such movements as Marxism. Pseudoscience came with a collection of idealistic nerds who tried to create a tailor-made society, the epitome of which is the central planner. Economics was the most likely candidate for such use of science; you can disguise charlatanism under the weight of equations, and nobody can catch you since there is no such thing as a controlled experiment.