Proof (closed set in compact space is compact)
Let $\mathcal{U} = \set{U_i}_{i\in I}$ be an open cover of $Y$.
For each $U_i \in \mathcal{U}$, since $U_i$ is open with respect to the subspace topology, there exists $U_i' \subseteq X$ which is open in $X$ and satisfies $U_i = U_i' \cap Y$. Let $\mathcal{U}' = \set{U_i'}_{i\in I}$. Then $\mathcal{U}' \cup \set{X\setminus Y}$ is an open cover of $X$, since $X\setminus Y$ is open.
$X$ is compact, so there exists a finite subcover $\mathcal{V}' \subseteq \mathcal{U}' \cup \set{X\setminus Y}$ for $X$.
This induces a finite subcover $\mathcal{V}$ for $Y$: $$ \begin{align*} \mathcal{V} = \sb{U_i' \cap Y}{U_i' \in \mathcal{V}' \setminus \set{X\setminus Y}} \subseteq \mathcal{U}. \end{align*} $$