This is a toy model of fractional reserve banking.
In the first period, there is foreign spending using domestic currency. This spending creates offshore banking reserves. The offshore bank then lends to the domestic bank. In consequence, the banking sector captures all of yield on government debt.