Someone working in another country is doing work someone in the country could also be doing, depriving them of a potential job. That's why you need a visa.
What? No. Because it's the whole point of a government to take care of its citizens. American gov takes care of Americans, Brazillian gov takes care of Brazillians.