Two different places to store a mask
Photoshop gives you two places to keep grayscale mask data, and they behave differently on purpose.
Layer mask: tied to one specific layer
A layer mask lives attached to a single layer, in the Layers panel. It controls only that layer's visibility: black hides, white reveals, gray partially reveals. You paint on it directly with a brush while the layer is active, and it travels with the layer if you move, duplicate or delete that layer. It's the tool for "let me control exactly where this one adjustment or this one exposure shows through."
Alpha channel: independent of any layer
An alpha channel lives in the Channels panel, below the color channels (RGB or Red/Green/Blue individually). It's not attached to any particular layer. It's a saved selection, stored as grayscale pixel data at the document level, that stays available regardless of which layer you have active. You can load it as a selection at any point with Ctrl-click, on any layer, as many times as you want.
Where the confusion actually comes from
Here's the part that trips people up: when you select a layer that has a mask, Photoshop briefly shows that mask as an entry at the bottom of the Channels panel too, labeled with the layer's name. It looks like a channel. Switch to a different layer, and that entry disappears, because it was never really a document-level channel, it was a layer mask being displayed through the Channels panel for convenience. A true alpha channel doesn't disappear when you switch layers, because it isn't tied to one.
This is also why tutorials talk about "building a channel mask" and then "loading it as a layer mask" as two separate steps. The channel is the reusable source data. The layer mask is one specific application of that data, controlling one specific layer. They're related the way a saved file and a printed copy are related: same content, different role.
When to actually use each one
Use a layer mask when the thing you're controlling belongs to exactly one layer: hiding part of a retouching layer, blending one exposure into another, letting a dodge and burn layer affect only certain areas. If the mask only ever needs to apply to that single layer, there's no reason to route it through a channel first.
Use an alpha channel when you're building a selection you'll need more than once: a luminosity range you want to feed into three or four different adjustment layers, a complex hand-refined selection you don't want to redo from scratch each time. Build it once as a channel, save it, and load it as a fresh layer mask on each new adjustment layer that needs it. You do the selection work exactly once instead of rebuilding the same channel math for every layer.
A concrete example
Say you Ctrl-click the RGB composite thumbnail to get a luminosity-based selection of the highlights, and you know you'll want that same selection to feed a Curves layer, a Hue/Saturation layer and a Dodge layer, all limited to the same highlight zone. Instead of rebuilding the selection three times, save it once as a channel: with the selection active, click "Save selection as channel" at the bottom of the Channels panel. Now you can Ctrl-click that channel's thumbnail at any point, on any layer, to reload the exact same selection, then click "Add layer mask" to apply it to whichever adjustment layer you're working on.
Quick answers to a few related questions
Can I paint on an alpha channel the same way I paint on a layer mask?
Yes. An alpha channel is grayscale pixel data, exactly like a layer mask, so brushes, Levels, Curves and Gaussian Blur all work on it the same way. Select the channel in the Channels panel to edit it directly.
If I duplicate a layer, does its mask become a reusable channel automatically?
No. Duplicating a layer duplicates its mask along with it, but that copy is still tied to the new layer, not saved as an independent document-level channel. To make it reusable, drag the mask thumbnail down onto the "Save selection as channel" icon in the Channels panel, or load it as a selection and save it manually.
Do alpha channels survive when I export or flatten the file?
They're preserved in formats that support layers and channels, like PSD and TIFF, but they're discarded when you flatten the image or export to a format like JPEG that only stores final pixel color.
EN
IT