For the same reason that we still have a finance and legal department even if you can outsource them, and for the same reason that non technical CTO’s don’t exist.
You can outsource the execution of a task but only if you know how to formulate your requirements and analyze the situation.