In most Latin American countries, there was a revolution in form of a war (with battles and casualties). Independence was desired by the common people but not by the elite.
In Brazil it's the legitimate leader - regent Dom Pedro - who declared independence (from his father). In this way the independence came "from above".