You may not be aware of how the country works.
No matter how pretty a façade Brazil gives to the world, or how rich some (very limited) parts of it are, the general mentalities in this place are still stuck pretty firmly in third world territory, and will stay there for quite a while, as the whole "civism" thing just seems too hard to comply with for most of the populace.
Safety regulations may exist to give the world an impression of civilization, but inspection and enforcement is almost always lax, corrupt or even non-existent, so there is no reason to follow them.