No, it's because as soon as they are trained they move on. And an increasing salary doesn't stop that.
People want to job hop to build up a diverse experience and no company wants to be the mug that pays an engineer during their bad years so that someone else gets to take advantage of it.