Why is a Software bug called a bug?

As a software engineer, I have been trained to call any problem with my software as a software bug. These are annoying little things which me as a developer had overlooked during programming, or made a mistake in understanding the requirements, or just straight up…