The farther your device is from the game server, the longer each request takes. Connecting to a nearby server can reduce latency.
Not every game lets you choose. Playing with friends on another continent may mean accepting a higher ping.
We summarise these sources in our own words. Results depend on your phone, your network and the game, so treat these as things that can help, not guarantees. Nothing here is affiliated with any game or its publisher.