MacOS supports controlling the brightness of attached displays via they keyboard. The user can even control monitors separately, simply selecting the controlled monitor via the mouse. I use that all the time.
Unfortunately, macOS and Mac monitors communicate through an arcane, apple-specific protocol instead of the standard DDC/CI protocol. This means that only some monitors that are explicitly made with macOS in mind work with the native macOS brightness controls.