In the single player game, known as Campaign Mode, passing other players will collect additional items. In the co-op mode, called RAID mode, StreetPass will add new enemies and missions to the game.
Source: Nintendo World Report