Its full keyboard descriptor gets it ID_INPUT_KEYBOARD, which makes UPower show the mouse battery as a keyboard.