The three major "concepts" in Photoshop can be treated as a mask.
A SELECTION is "transparent" mask to the underlying pixels of the active layer.
A LAYER is a "stacked" mask to the underlying pixels of the layers below.
A MASK is an "actual" mask to the underlying pixels of the layers below.