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.