From the manual:
Per default the file will automatically be received when you call getValues() on the form. The reason behind this behaviour is, that the file itself is the value of the file element.
There are some examples of how to change this behaviour if that's not what you want to happen, but it seems logical to me.