A device driver is a program that lets the operating system communicate with specific computer hardware.
Computer parts need a driver because they do not use standard commands. For example, video cards from Advanced Micro Devices (or AMD) and Nvidia do the same job, but each requires its own driver as different hardware requires different commands. Different operating systems also need different drivers, a driver written for macOS can not be used by Microsoft Windows.