What do you understand by economics? When Adam Smith first formulated his economic theories the entire purpose was to determine a means by which typical behaviour, not ideal or perfection but what IS, can be turned to the common good, he stated that no society could be prospering in which the majority were in want and experiencing shortages, so he defined a means to maximise productivity and production in order to eradicate that shortage and want. It was and is a moral theory.
As with profit, I believe that you are conceiving of profit as exclusively capitalist returns on investment or wages etc. There is a wider definition, for instance in the bible it is written "what does it profit a man if he wins the whole world and loses his soul? (or in some translations "mind")", profit as I understand it simply means benefit or gain or a good. This is the same as the concept of selfishness, for some selfishness is totally anathema, always wrongful, a positively evil thing, while for others it is a virtue, I think either extreme is sorely mistaken and a neutral legitimate self-interest exists which is neither of these extremes and a prerequisite to altruism or doing good for others.
Now I would accept and believe that from the time when Smith formulated his theories that economics has become more rationalising (in the psychological sense) than reasonable, it has degenerated in many ways into being the ideology of ruling elites and elites in conflict. Marx was one of the first to suggest that economics was no longer a science or interested in being scientific but he wasnt the only one and the others which felt this way were not even always socialists or interested in ending class struggles or elitism. That said I do think it is mistaken to create a dichotomy of morality vs. amoral economics.