Yea this is my biggest issue. I make a point of pushing for hiring green devs in our company. A balance of green and senior. My argument to management is that we’re never hiring people for what they know, we’re hiring people to learn our problems and figure new ways to solve them.
To add another point to this, is that people at different points in their career are interested in different problems. A chore that a senior dev might be an exciting opportunity for a junior. Similarly a daunting task for a junior might might be just the right difficulty for a senior. It is super important to make sure you have mixed experience teams just to help keep morale up, and not stall out on any given set of tasks.