That's how it can tell you were very close to someone -- all of the other tracking apps do it that way, too.
I'm currently on the 11th floor of a building. GPS accuracy in the vertical dimension is much worse than horizontal. A bluetooth beacon will tell you if I'm in the same room with someone else.