And the other way around, if there is an inflow of foreign currency to a country, it creates demand for the home currency. This results in the appreciation of the home currency.
When foreign currency is introduced into a country, it increases the need for the local currency. Consequently, the value of the local currency rises.