I am revising a little bit some Galois Theory using the book of P. Morandi, "Field and Galois Theory". I stack on the proof of separability polynomials in characteristic $0$, where he writes
If $f(X) \in K[X]$ is irreducible over the field $K$, then the only possibility for $\gcd(f(X),h(X))$ is $1$ or $f(X)$.
Well, say $g(X)=\gcd(f(X),h(X))$. So, $g(X)|f(X)$, thus $f(X)=k(X)g(X)$ for some $k(X)\in K[X]$. Since $f(X)$ is irreducible over $K$, it must be either $k(X)$ invertible, or $g(X)$ invertible. In other words, either $k(X)=c\in K\setminus \{0_K\}$, or $g(X)=1_K$ (since the gcd is monic). So, $g(X)=c^{-1}f(X)$ or $g(X)=1_K$.
Why does the author claim that $g(X)=f(X)$ in the first case?
Thanks!