Pooling is unweighted selection: it outputs the selected values as is.
attention can be thought of as weighted selection: some input elements are highly weighted, others receive weights close to zero and are thereby effectively not selected.