You're defining a local class. Local classes can't have any access specifier, because it doesn't make sense. The class only exists within the method, so nothing outside of the method would be able to access it anyway.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.