The reason &quot;bug&quot; is used is because the first computers were programmed through hard wiring and mechanical switches, and they were actually insects that were present. This is from Grace Hopper in 1947:<p><a href="http:&#x2F;&#x2F;www.computerhistory.org&#x2F;tdih&#x2F;September&#x2F;9&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.computerhistory.org&#x2F;tdih&#x2F;September&#x2F;9&#x2F;</a><p>Convention has stuck which is why we have software debuggers, and the word bug in computer science has come to mean any unintended result, not just the presence of insect wildlife.<p>(I myself debugged a floppy drive in &#x27;87 which had an earwig stuck behind the read head backstop resulting in the read head being misaligned to the sectors)