Agreed. If you can under pay by an amount that is less than the perceived pain of looking elsewhere, that's sane if you have a short term view.
Other option you'll see in big corps is to use old technologies only. This gives them an excuse to underpay, and makes it harder for their devs to leave to a fair market salary role!