"The term "bug" in computing has been around a long time. The term was not commonly used until an actual bug landed on an electrical switch causing the computer to malfunction.(Returning a zero when it was supposed to be a 1). The term bug grew in popularity afterwards and landed us where we are today.
When we find a bug in software we apply a "patch"...
This comes from old cardex/punch card systems. If a punch card was punched in the wrong spot, you could fix it by applying a patch to the hole."