Android fiction is very old. It began long before actual androids. It started somewhere in the early 19th century with E.T.A. Hoffman’s story “The Sandman” (1816). I suspect you could back a lot further. Descartes wrote about “animal-machines” in the 17th century.
Generally speaking, the genre of android fiction expresses much anxiety about what it is to be human, particularly in relation to a new technology – whatever the technology in that historical moment happens to be. Think of Frankenstein (1818). Technology is supposed to free humans from nature and from death, to make life better for humans and perhaps to make better humans. And yet it seems to produce monsters. As in Frankenstein, these supposed monsters often reveal something scary about humans themselves; they point the finger at us, who make and use the technology.
