What you’re missing from this is you’re talking about the CCC not removing the first grade, not the UC.
The GPA showing on the CCC transcript is not always the same after the UC goes through it. They make that clear on the UC website. The UC would have kept you at 4.0 without AR. But no loss either way.
The only time that doesn’t happen is the case, curiously enough at Haas, where they say anything D or lower in a major prep course is kept as the grade even if retaken.