The Brazil inspection official found cash in your luggage, they stated that cash can not be transported in Brazil and foreign currency can not be spend or use in Brazil, you need to pay for exchange rate to convert all the money into Brazil currency.