Which is because they went to the rock bottom bidder and that came at a price: you got the newbies, and the outsourcing company was training them on the job (ie _your_ project).
I heard stories that some companies rotated out their folks into higher paying projects (which existed) once they gained sufficient experience, replacing them with the next batch of newcomers - making the cheapest customers pay for "intro classes" (also known as amateur errors) during the entire project's lifetime. If true that would be a shining example of "you get what you pay for".
Hardware production outsourcing works well. You design the product, prototype it, create a specification that describes every necessary detail, and find a company to make your device. This engineering design process is expensive but does work well. Your onshore workers are the engineers, designers, and the like. Your offshore workers are the production staff.
Software production outsourcing works poorly. Creating a thorough enough specification for production is exactly as difficult as creating the program. You have all the same types of onshore workers, but there's no production staff!
Software outsourcing has been a thing for decades now and if anything seems past its peak as people find their programmers in Bangalore don't actually do as well as they hoped.