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!
some computer viruses are called a trojan horse because they can come in a form or something harmless, like a website or a email attachment
just say it's your friend did it and you had no idea?
the answer is irony!