Not that you're implying it, but I think it's fair to point out that people in ex. Brazil aren't worse at dev work, just that there is probably lower incentive to be good.
Just as you compete for top talent locally you also compete for top talent globally when hiring remote.
I live in Sweden now and have dealt with a lot of Swedish companies over the years. It is hard to explain this to the locals because they see Sweden as a big tech hub where all the talent is at, but the scale of things in Brazil is _crazy_. I worked in a telecom project where this one single company had more active (paying) SIM cards than the population of Sweden several times over.
Just because it is a poorer country doesn't mean it is easier engineering, if anything the engineering is harder.