This is probably a combination of:
- the Wi-Fi adapter on your machine, or its driver, not supporting remaining associated with a network when in monitor mode;
- Apple "helpfully" preventing disconnection from a network by not putting an adapter into monitor mode if it's associated with a network and, apparently, not supplying any packets.
This hack on Apple's part first appeared in Mojave with at least some hardware.