You can also think of the Peripheral as the device broadcasting the data. It starts advertising to the external world that it has some data. So, it advertises that it can provide services. On the other side, the Central starts to scan the environment looking for some service. If the Central finds the wanted service, then it asks the Peripheral to connect. Once the connection is established, the 2 devices start to exchange data.