You're right, companies should value long-term employees. But what if that person wants to be promoted, or move elsewhere?

Skills can be handed over; it depends on the complexity. Also, two people can be equally skilled, but not have the same knowledge to operate effectively in a specific company position. Eg. your new IT guy needs to know the code to the fireproof safe where the tapes are stored.