Hello, the problem is that mock thinks that it uses YUM but in fact it uses DNF. Thus mock creates "yum.conf" instead of "dnf.conf". Because DNF does not find a configuration file in the chroot, it uses the configuration of the host. The problem has been fixed in upstream apparently.
*** This bug has been marked as a duplicate of bug 1211978 ***