Really interesting!
At that time, Brazil's story was really attracting attention!
Lisbon's earthquake (which happened in the 1750s) had a major impact on Portugal's economy, affecting its power and money to invest in its colonies.
Then, the peninsula war came in 1807 and it basically imploded Portugal's influence and made the Portuguese Royal Family flee to Brazil, transferring Lisbon's headquarters to Rio de Janeiro for the Portuguese kingdom. Revolutions in Portugal took place and the son of Portugal's Emperor stayed in Brazil, proclaiming independence in 1822 while his father went back to Portugal to control these revolutions.
Therefore, this background information is really important to understand the context of the visit. Brazil, a recently created country, was being developed really quickly, promising to be the new USA. So, the already close Brazilian-Portuguese kingdom had also close ties with England (which was a partner of Portugal in the Peninsula war against Napoleon), using their influence and money to develop Brazil and also to "mark their territory". Considering also the marriage later-on of the prince of France with Isabel (D. Pedro II's daughter) we can understand the geopolitical context and the role that Brazil was playing at the time, along with Portugal and England, while France wanted a "slice" of the promising country through their marriage.
We can see in the article families that received the royal family and these very same families also had sons and nephews in Brazil, which were mostly merchants and therefore established the bridge between England and Brazil. Hence, developing a new country based on their British-based companies and affairs.