Location History Accuracy?
Izzy, in his comment, linked this previous question which explains how Location data is gathered. I recommend reading it for a better understanding of the technology. (It also seems to be contextually applicable)

In this case, the phone was most likely assuming that it was inside the hotel because it could see the hotel's Wifi access point.