At/in the gate
Here’s what it means
The phrase often means at the place where elders, judges, merchants, and rulers conducted public business.
Why the Bible says it this way
The writer names one closely related thing to stand for the person, action, or larger idea.
A helpful detail: A literal city gate is normally present, but it functions as the courthouse and public forum.