It might be your phone getting a notification, and sending that to the BT speaker, which then takes precedent over the laptop
I usually just disable BT on my phone when stuff like that happens (on android, you can change the playback device without disconnecting, and that should also prevent the phone from stealing your headphones)