"hired as" was intentionally chosen wording.
IME, the easiest path is within a company, not in a new hire situation. You take someone with demonstrated technical skill/credibility, a track record of success, and a desire to lead and you give them progressively more management tasks, culminating in a formal role change to manager. They already know the company, the team, the codebase, the business, etc. and it's much easier for them to step back into a pure technical role if it doesn't work out or if they hate it.
I've had extremely "good luck with that".
It's much riskier to take a fresh new hire with no management experience into a tech manager role at a new-to-them company.