A CLI might be the most information theoretically efficient form of API, significantly more succinct than eg. JSON based APIs. It's fitting that it would be optimal for Claude Code given the origin of the name "Claude".
Information theoretic efficiency seems to be a theme of UNIX architecture: https://benoitessiambre.com/integration.html.