A company has a fiduciary duty to the shareholders, who bought the stock on the assumption that the company will be run in their best interests. If they do't do that they are open to shareholder lawsuits. (This is the way that activist investors often work.)