That's not how product liability laws work in the U.S. or in the E.U.
The first time a child gets harmed by a robot, the company making that robot will go spectacularly bankrupt. If a child gets killed by a robot, it would likely end the consumer robotics industry for a decade or more.