No it doesn't. Humans aren't a constant box of skill, your intelligence grows or reduces. A young candidate with X amount of skill is more likely to reach 2X skills in 10 years than an older candidate who has stayed at X for past 10 years. Growth potential is what counts, and you saying that you have been at skill level X for past decade just proves that your ability to grow is reaching nil.
Or, a person is being unfairly passed over for opportunities for any number of reasons outside their control. Bad companies do exist, and not everyone has their pick of jobs.
It was in their control, they could have gained solid skills in those 20 years to set them apart from a college grad. 20 years is a very long time, you could master several disciplines during that time, so if you fail to master even your main occupation it tells us something about you.
How does staying at a single company improve your skills? You can switch 5 companies in 5 years or stick to 1 company for 5 years, the amount of skills you gain is not tied to duration of your employment but your inherent ability to learn and desire knowledge.
...if you were given the opportunity.