When an action took place somewhere, and we can replace the place with the when construction, we use Past Simple and other tenses, but we don’t use Present Perfect:
I bought it in Moscow
I bought it when I was in Moscow
This is because there is an indication to time period that has already finished. This and other cases you can find in the lesson Present Perfect: When we don’t use Present Perfect in course Present Perfect Tense
Related lessons:
Present Perfect and Past Simple Compared: Sentences with when
Present Perfect and Past Simple Compared: Specified finished vs Unspecified (period of) time
Present Perfect and Past Simple Compared: Finished vs unfinished time