If this occurs, your multiplayer setting is likely set to “Allow with Friends Only.”
From the Home screen, go to Settings > Screen Time > Content & Privacy Restrictions > Store, Web, Siri & Game Center Content.
Under the Multiplayer Games section, change from “Allow with Friends Only” to “Allow with Everyone.”