The built-in display brightness of your Macbook or iMac is synchronized to the external monitor.
Custom brightness and contrast values are computed for each external monitor by passing the built-in brightness through a curve algorithm that is completely configurable by the user.