It’s called “Extradition Treaties”. There are many with different countries.
Extradition is when a person commits a crime, then flees to a different jurisdiction or country, is arrested at the request of that jurisdiction or country and sent back to face trial. This is more akin to the agreements we have with Iraq that crimes committed there by US service personnel are handled by US courts rather than Iraqi courts.