We haven’t automated 10% of what could be automated, especially in tasks that were previously not cost-efficient to automate or that required AI tech to automate.
Coding is nice for AI to overtake because it's all abstract (apart from context). The problem domain is literally just string to string mapping.