Some Wifi access points/routers etc have the ability to schedule when the wifi is active, and what devices can connect and when - for example this is the config for that function on my router.
However why you would want to do this is unknown, as quite a few devices will check for firmware updates, and more importantly critical security updates overnight