You seem to imply there is fundamental irrationality on the parties buying the services, but is there really? At small scale, I have personally derived positive ROI from services I bought from freelancers. While outsourcing can certainly fail, it is not that different of a challenge from other business activities that entail managing people and making things work out financially.
Do we really think that every single dollar spent on services of freelancers was wasted?