It's a bit too generalizing that it failed and happens "now and then", offshoring is a multi-billion industry employing millions of people.
And the "unskilled people putting together legos" is also very much a thing in the form of low/no-code platforms, from my own circles there's Mendix and Tibco, arguably SAP, and probably a heap more. Arguably (my favorite word atm) it's also still true in most software development because outside of coding business logic, most heavy lifting is done by the language's SDK and 3rd party libraries.