Being immoral can hurt your profits, because customers might be repulsed and boycott you. Breaking the law can hurt your profits, because the government might take action against your business.
Those are the sole reasons why you would avoid doing immoral and illegal things. If the benefit outweighs the negatives, then businesses will do those things. If they don't do it, they will lose against other businesses that are willing to do it.
Fortunately, the downsides can be quite big, which means that most of the time businesses will "stay in line". A huge boycott from the people or hard damaging actions from the government really hurts profits, so it's very rarely a profitable thing to be immoral and break the law.
Being immoral can hurt your profits, because customers might be repulsed and boycott you. Breaking the law can hurt your profits, because the government might take action against your business.
Those are the sole reasons why you would avoid doing immoral and illegal things. If the benefit outweighs the negatives, then businesses will do those things. If they don't do it, they will lose against other businesses that are willing to do it.
Fortunately, the downsides can be quite big, which means that most of the time businesses will "stay in line". A huge boycott from the people or hard damaging actions from the government really hurts profits, so it's very rarely a profitable thing to be immoral and break the law.