I think the comparison is slightly off. The compiler was never the author — it was the verifier.
The real comparison is: 1. Human writes code (non-deterministic, buggy) → compiler catches errors
2. AI writes code (non-deterministic, buggy) → compiler catches errors
In both cases, the author is non-deterministic. We never trusted human-written code without review and compilation either (and + lots of tests). The question isn't whether AI output needs verification — of course it does. The question is whether AI + human review produces better results faster than human alone.
The compiler isn't so much a verifier than that it is a translator. The verification step wasn't the initial focus but over time it became more and more important.
AI? Not so much. Not deterministic. Sure, the probability of something bizarre may go down. But with AI, as currently constituted, you will always need to review what it does.