Both types of devices make use of GPS as well as the location of the wireless network they are connected to.
With all devices in one room, the accuracy of the technologies used is just not enough. Especially in buildings the accuracy is usually not good and you would have people showing up randomly inside the room (and also outside of the room).