I used to live in an area with lots of apartment buildings and had to babysit a friends dog for a couple of weeks. I met a couple of people when I took the dog out at 6:30am because they were doing the same thing. Ran into the same people every day. Plus you always let the dogs visit (sniff each other) so starting a conversation is almost automatic.
Now I have my own dogs. Easy to meet people if you go to obedience, agility, or other dog classes.
With a dog you get all of the above, plus the affection from the dog, plus the additional exercise.