Small nitpick: at this time Brazil was a Portuguese colony and the monarch was called King John V, not an “emperor”. Brazil only got an emperor when it became independent about one century later.
Why did Peter, the son of a Portuguese King ruling over territories spanning 4 continents, decided to call himself an Emperor when ruling over a single (albeit large!) territory? I don’t know, ego?