The File::Find documentation makes this clear saying thus:
wanted function takes no arguments but rather does its work through a collection of variables. $File::Find::dir is the current directory name, $_ is the current filename within that directory $File::Find::name is the complete pathname to the file. These variables have all been localized and may be changed without affecting data outside of the wanted function.