For those short in time there’s a three word answer: everything works out-of-the-box.
With you we can dig a bit deeper into why’s and how’s.
With proliferation of various connected hardware buttons, (at least) we have witnessed all of them offering either Wi-Fi of Bluetooth connectivity.
Most of them are aimed towards home users and–keeping that in mind–Wi-Fi and Bluetooth are sensible alternatives. You want to control something in your own home, and you most likely already have a Wi-Fi network. So why accumulate costs when you can use network you already have.