Here, I present a simpler proof for this question than how I originally posted:
Suppose $k = nq + r$, where $0 \leq r < n$. We have the following:
$$x^k - 1 = x^k - x^r + x^r - 1 = x^r(x^{nq} - 1) + x^r - 1$$
We know from your forward implication that $x^n - 1 \mid x^{nq} - 1$, so we have $x^n - 1 \mid x^r - 1$, which isn't true if $1 \leq r < n$, so we must have $r=0$. Therefore, $x^n - 1 \mid x^k - 1 \iff n \mid k$.
Here, I present my original proof for this problem:
We can use cyclotomic polynomials to prove this.
We note that $\displaystyle \prod_{d \mid n} \Phi_{d}(x) = x^n - 1$, and that every cyclotomic polynomial is irreducible.
Thus, this problem is
$$\displaystyle \prod_{d \mid n} \Phi_{d}(x) \mid \displaystyle \prod_{d \mid k} \Phi_{d}(x) \iff n \mid k$$
However, since each polynomial is irreducible, then all the terms on the LHS must be present on the RHS, so for all $d \mid n$, we must have $d \mid k$, so we must have $n \mid k$.