But when you redirect output, the shell does something magical
The child shell sees that you said > /tmp/files
It closes file #1
It then opens /tmp/files and attaches it as open file #1