I can’t stress this enough: “Just because a person excels as a contributor does not mean they are suited to lead a team, or even manage a direct report.”
I’ve lost count of the number of teams I have helped reorganise because people have been promoted to lead or manage a team based on tenure or because they didn’t want to lose someone.
Read this great article by Robert Glazer from Inc.