This is defined in Chapter 7 of the Java Language Specification (JLS):
A compilation unit […] automatically imports all of the
publictypes declared in the predefined packagejava.lang.
solved Why We Don’t Need To Import the java.lang package to use the Integer Class(Wrapper Classes) In Java [duplicate]