I think it’s quite normal (at least at some companies) for a CTO to spend some time writing code as part of setting technical direction. In that case there might be other executives who do the other parts of the CTO role you imagine (eg having lots of reports).