A community comes from shared interest plus a way to interact
The book says two steps turn strangers into a community: build a shared interest, then give them a chance and means to interact about it. A multiplayer game does both.
From McGonigal, 2011, ch. 9. McGonigal, J. (2011). Reality is broken: why games make us better and how they can change the world. New York: Penguin Press. ISBN 978-1-59420-285-8 (hardcover). (The copy is an e-book whose text file has no copyright page; its file identifier is 9781101475492, not matched in Open Library. No DOI.)