How does a generic bluetooth mouse / keyboard work with macos without installing any driver?


Some generic brand bluetooth keyboard / mouse work fine on macos. Does macos have a built-in common driver api (for mouse and keyboard) that these all device use or is it some specification in the Bluetooth stack that allows this?