Downloaded files getting stricter permissions than expected

Unclear why, since from testing I can see umask is 0022 in the script that is downloading files.