Robot capable of sorting through and folding piles of rumpled clothes

Advancements in robotics have enabled humankind to automate a whole range of industrial processes, leading to more efficient and safer production and helping to expand our knowledge through scientific discovery. Why is it, however, that we can send a robot into space to take samples of Martian rocks, but still can’t delegate the ironing to a household robot?