It's not because of science fiction stories, it's because things designed for human to use, is designed for a humanoid form factor. If you want to accomplish a task, it's going to be reflected by that machine. Eg a conveyor belt doesn't look like a human. But if you want swap a robot where a human used to be, it's far easier if that robot is humanoid and has the same approximate capabilities. Thus, we have humanoid robots.