@informant You completely ignored that devs aren't being paid the same wage all over the world.
I'm from Kenya, have around 4 yoe mostly in backend and my recent salary was ~2500usd per month. You might not believe it but that amount is in the top percentile of earners here barring Microsoft, (Google and Amazon who recently started hiring locally).
That is 30k USD yearly and ~15 dollar an hour. That's the same amount I work with in my freelance gigs in Upwork.
Even Microsoft does not break the bank here, they pay significantly lower than European Devs who are in turn paid lower than American Devs.
It all ends up being the client's choice really. Just do some extra vetting, and build a personal relationship via video calls, etc or move to a marketplace like Upwork.