When interest rates were high and credit risk unattractive, the easiest form of banking in an emerging market was to raise deposits and lend them to the government.
Brazilian banks made a healthy living out of this for many years until economic conditions improved and lending to the real economy became more compelling.