Why java external classes can access private variables of inner classes

java is a rookie. I roughly understand that when java compiles external classes and inner classes, it is treated as two classes. Inner classes can access variables of external classes, and some access methods are added during compilation, but I don"t understand why external classes can access private variables of internal classes. Please tell us

Mar.31,2021
This is how the

language level is defined, and there is no reason why. If you have to say why, it is that the inner class is a member variable of the outer class and, of course, has more permissions on it.

Menu