In my first corporate job I was the most technical employee by far, I did the work of far senior roles because my managers were wise to use a lot of my technical skill to get complex work done all the while having HR tell me I didn't have enough years and experience to have the higher paying job title.
Just because someone has the job title they have and the pay to go with it often has nothing to do with the work they do.
In both directions.