I was a manager of others who were also called "managers" (they were Project Managers and App Managers) and I was still writing code when needed. These days most managers in IT in my company are non-technical to the point they cannot write a single line of code in any language. Their managers are so non-technical they don't understand SDLC or anything related to what their people are supposed to do. Times changed, what is a manager today changed.
Then why are manager jobs now requiring LeetCode and other technical assessments? It's not easy to get any job anywhere unless you have a technical background.