I was studying Hatcher's Algebraic Topology regarding CW complex. I am having trouble in understanding definition of CW Complex.
(1) Start with a discrete set $X^0$, the $0$-cells of $X$.
(2) Inductively, form the $n$-skeleton $X^n$ from $X^{n−1}$ by attaching $n$-cells $e^n_\alpha$ via maps $\varphi_\alpha:S^{n-1}\to X^{n−1}$. This means that $X^n$ is the quotient space of $X^{n−1}\amalg_\alpha D^n_\alpha$ under the identifications $x\sim\varphi_\alpha(x)$ for $x\in\partial D^n_\alpha$. The cell $e^n_\alpha$ is the homeomorphic image of $D^n_\alpha−\partial D^n_\alpha$ under the quotient map.
My confusion is if these $n$-cells $e^n_\alpha$ are actually homeomorphic to open disks then why are we attaching closed disk to $X^{n-1}$?
I will give an example in dimension $1$. So the open $1$-disk is just an interval, without the endpoints. Imagine you already have $X_0$, and we now want to attach the cell $e^1$ to $X_0$. In this dimension, there will be basically two ways to do this:
Note that, in both cases, the interior of the cell is homeomorphic to the open disk, since both are an open interval, but in the first case, the closure is a closed $1$-disk, and in the second case, it is a $1$-sphere. So the way you attach the closed disk matter, even if the interior is the same open disk.