That is the way it works in many adjustment panels. It is somewhat different in saturation panel and others.
But levels, curves, others affect the entire image, that is one of the main uses of masks, to limit the effect of these tools to certain areas of the image..
Half the fun is learning the application, but it is a broad and steep curve.
lots of luck.