When the browser gets that IP when Pi-Hole is disabled, the IP has a finite TTL (time to live). Until that TTL expires, the browser does not have to look up that IP again. After it does expire, then the browser asks Pi-Hole for the IP and the domain is now blocked by Pi-Hole.