One of the main effects (I will not say purposes) of orthodox traditional economics was... a plan for explaining to the privileged class that their position was morally right and was necessary for the welfare of society.
Collected economic papers (1973 edition)