Answer: A trojan horse is called like this because it’s something unsuspicious looking to get into other people’s computer, like the trojan horse was used to get into Troy. A virus is called like this because it infects other computers similarly like a biological virus.
have a good day!