Let $P$ be a prime ideal of the integral domain $R$ and let $f(x)=x^n+a_{n-1}x^{n-1}+\cdots a_1x+a_0$ be a polynomial in $R[x]$ with $n\geq 1$. Suppose $a_{n-1},\dots,a_1,a_0$ are all elements of $P$ and suppose $a_0$ is not an element of $P^2$. Then Eisenstein's criterion states that $f(x)$ is irreducible in $R[x]$. I am having trouble understanding a part of the proof of this statement as given in Dummit and Foote. The proof starts as follows:
Suppose to the contrary that $f(x)=a(x)b(x)$ in $R[x]$ where $a(x)$ and $b(x)$ are nonconstant polynomials. Reducing the equation mod $P$ and using the assumptions on the coefficients of $f(x)$ we obtain the equation $x^n=\overline{a(x)b(x)}$ in $(R/P)[x]$ where the bar denotes the polynomials with coefficients reduced mod $P$. Since $P$ is a prime ideal, $R/P$ is an integral domain, and it follows that both $\overline{a(x)}$ and $\overline{b(x)}$ have $0$ constant term, i.e., the constant term of both $a(x)$ and $b(x)$ are elements of $P$.
Why does this last part follow? Why does this mean that $a(x)$ and $b(x)$ have $0$ constant term?