In the US (and Europe) manual labor is expensive, so to make something you need a lot of automation. Once it is automated the next step is enough volume to pay for the automation (which needs expensive engineers).
Of course maybe this will change. Basic textiles were one of the first things we automated 300+ years ago, but we are only able to go from a bunch of cotton to a bolt of fabric today. As I write this making a shirt (or dog bed as this story) seems beyond what we can automate. Maybe a little investment will fix that, maybe not. I'm not an automation engineer so I can't tell you how solvable the problems are.
https://www.npr.org/2022/10/22/1130552239/robot-folding-laun...
Everything else is ultimately just inclined planes and a power rod pulling on levers, which is the stuff that was solved with the Jacquard machine and a whole industry of competing models of sewing machine before we even had electricity let alone electric servos.
It's possibly already changing? 3D-knitting (of shoe uppers is what I have noticed) can make some sewing redundant. How far that can be taken remains to be seen.
ah there are already sweaters made using this technology it seems: https://www.oliver-charles.com/pages/3d-knitting
Textile mills in Bangladesh are able to pay $0.025 US cents per kwh, and factory laborers can be employed for about $150 a month. From their main port to the US west coast, when sent by container ship, costs about $0.10 per sq m. There is no universe where anyone else can compete. It's not within America's comparative advantage anymore.