It's simple really. The glob documentation says that it performs filename expansion just like the standard Unix shell but it never says that it checks for those files to exist. It's only creating a list of possible filenames. It's up to you to figure out if they are there.