It's not Oracle that issued the ban -- it doesn't have that authority. It's the OpenJDK Governing Board. (Of course the latter generally follows Oracle's lead.)
https://openjdk.org/legal/ai
That Oracle's policies over its internal code base are different is irrelevant.