A man walks by a building at night.
A man is in the city.
Just because a man walks by a building does not mean he is in the city.
Buildings can be in places other than they city.
A building can be anywhere besides in the city.