Firmware is a code or software that's built in to a drive (or other piece of hardware). You can find it in many devices such as wireless routers, ipods, game consoles, etc… The main function of most firmwares is to tell the device how to operate.
Most manufacturers constantly develop and improve their products so they need to rewrite the firmware, that’s why is important to always update it.