Restarting a device is here to reinitialize the driver if things don't work as expected.

It affects only the selected Magic Keyboard and does not reinstall the actual driver.