But I feel that the for-profit aspect applies both ways: if the company is going to work to maximize profits, why shouldn't I do the same? If another company is offering me a substantially higher salary than I would get with a normal raise, then why shouldn't I at least consider it? The company wouldn't hesitate to fire me off if they felt I was underperforming.
The only argument I can see for loyalty (and only kind of) is if you work for a non-profit, or something run on a finite research grant or something. At that point, you could argue that loyalty isn't naive as the work itself is more the goal than the profit motive.