However, the record companies are not run by robotic automatons. They are run by humans and, quite frankly, as human beings, they should have the cognitive capacity to understand complex mental abstractions such as morality, healthy social balance, empathy, and temperance. Trying to earn a profit is not a morally corrupt quest. Trying to earn a profit at the expense and livlihood of your fellow human beings, and at the disruption of the society that you, yourself, are part of is downright stupid, if not flagrantly evil.
There's a selection pressure going on. If you have a sense of morality, you're not going to last long in such an environment, so you quit. Meanwhile, the people that don't have such compunctions keep working. Pretty soon all the moral people have been weeded out.
If the corporate optimization function is aligned for profit alone, then don't be surprised when the upper echelons of the companies get filled with people who care only about profit. In this respect, the sociopaths have an "evolutionary" (selective) advantage: they don't let their morals get in the way of the profit optimization. Thus they can optimize further than ordinary people can, and hence they're selected for. Doing something about that would involve altering the optimization ("fitness function"), but how?