Police in the United States are used to generally treating everyone (including foreigners) with impunity, while cops in other countries dealing with US citizens are more wary of causing a diplomatic incident. There's also the novelty factor: people from high status countries are seen as interesting, and the more uncommon your presence is there, the more friendly interest officials take.
He's making a mistaken inference by assuming that how the police treat US citizens also reflects how they treat locals.
My in-laws were in Iran during the revolution. He's American and she's Thai. They have a long story whose climactic confrontation with guards is suddenly resolved when they decide that the Thai lady with the fuzzy hooded coat must obviously be an American Eskimo and that this is the most amazing thing he's ever seen.
So the two of them have a story about the time they got out of a terrifying situation, and there's an Iranian somewhere who has a story about that one time, for reasons he will never understand, an American Eskimo wandered through his guard post.
Being able to speak the local language and to be able to portray yourself as "local boy made good" seems to bring out something in people where they want to root for you.
Both your responses have the person taking on the role of a --short term-- mentee: they show some sort of of connection + naïveté that prompts the authority figure into rooting for them ie caring enough to indicate next steps. '
Update: To be fair, I'll add that some cops in Kyrgyzstan like that kind of easy money -- they could harass you until you give them some money. But don't bribe them. It is best to play a total idiot like "you me, me you, me friend to you, you friend to me, yes, I like your country, nature mountains ... " etc. Don't forget to smile :)