A lot of companies also try to save money in the short term by hiring experienced people from the first group who happen to align with whatever their stack is today. Then they whine and bitch about "older developers" when they try to change the stack three months later and this person can't keep up.