How did someone join my single player world?

I have a Minecraft PE single player world. When I was playing somehow someone joined my game. How could/can this happend?


If you have the "Local server multiplayer" setting on, anyone in the same network as yours can access your world.
enter image description here