There was an unusually high turnover of chief executives in 2022, as many companies looked beyond their own employees for their next leaders.