It uses both Bluetooth and WIFI.
Bluetooth determines the distance between your Mac and AppleWatch , WIFI checks if your connected to the same network to 'grant you access'.
Think of Bluetooth Beacons, they only work if your near ~ cm from a beacon. You can setup beacons to show up on your device if your close enough. The Mac works like a beacon this way.