Installing humanoid robots in a factory is like using regexes to parse data.
It makes sense if it's a one-off but there are better solutions.
Maybe it does make sense for small scale businesses that need just a little automation? Like a humanoid robot could restock shelves and do inventory in a grocery store at night, and you wouldn't need to retrofit anything to be able to do that.
Large scale factories seems like the wrong use case for humanoid robots.