It’s not the WiFi, it’s DHCP!
There are many reasons why a DHCP server would not work correctly; it could be server issues, pool depletion, misconfigurations, etc. Part of the WiFi network administration is to understand how other network services work and how they affect WiFi performance