Because you probably have smart lock on
If you add a place,your BT headphones as a trusted agent the phone will be unlocked as long it's connected to that headphone.
Btw I have added those two as trusted agents
See the bottom text
The phone is already unlocked when smart lock is on (whenever it's connected to either of my two devices)