It doesn’t! (unless of-course you are operating a 100% cash only money transfer network – an example of which I do not know of).

To understand how cash is transferred between countries, read this answer: Faisal Khan’s answer to Where do currency exchanges get their currency?

To understand how money transfer works between countries, including remittances, you might want to read these answers that explain the process of inter-country money settlement: