this is a total myth that is somehow oft-parroted on the internet.
directors/officers of a corporation have a fiduciary duty to its stockholders. this is three-pronged: good faith, loyalty, due care.
there is no such 'maximize profits' mandate in common law. See business judgment rule and Directors' duties.
if these don't clarify things, please ask questions.
1: http://en.wikipedia.org/wiki/Business_judgment_rule
2: http://en.wikipedia.org/wiki/Directors%27_duties
..
edit: another poster (netcan) gave a great explanation in a sibling thread- https://news.ycombinator.com/item?id=7129582