Though there are simple direct proofs, it is worth emphasis that this is an immediate consequence of a fundamental property of integral extensions, i.e. extensions obtained by adjoining algebraic integers (roots of polynomials that are monic, i.e. lead coef $= 1).\,$ Namely, integral extension don't alter unit properties of the base ring, so a nonunit (i.e. noninvertible) element remains nonunit in the extension. In particular if the base ring is not a field then ditto for the integral extension. Let's prove this very simply for your special case.
Write $\,\Bbb I := \Bbb Z[i]\cong \Bbb Z[x]/(x^2+1)\,$ for the Gaussian integers. Note every $\,w\in\Bbb I\,$ is integral over $\,\Bbb Z\,$ being a root of a monic polynomial $\,f(x)=(x\!-\!w)(x\!-\!\bar w) = x^2+bx+c \in\Bbb Z[x].\,$ If an integer $n\in\Bbb Z$ is invertible in $\Bbb I\,$ then $\,w = n^{-1}\,$ is a root of such a quadratic so $\,n^{-2}+b\,n^{-1}+c = 0\,$ $\overset{\times\ n}\Rightarrow\, n^{-1} + b + c\,n = 0,\,$ so $\,n^{-1} = -b - c\,n \in \Bbb Z,\,$ i.e. $\,n\,$ was already invertible in $\,\Bbb Z.\,$ Thus nonunits in $\,\Bbb Z\,$ remain nonunits in $\,\Bbb I,\,$ e.g. $\,2\,$ is not invertible in $\,\Bbb I,\,$ so $\,\Bbb I\,$ is not a field.
Exactly the same simple proof generalizes to any integral extension, e.g. see here. Generally this method easily shows that
$\qquad$ If $\, E < D\,$ is an integral extension of domains then $\,E\,$ is a field $\!\iff\! D\,$ is a field.
This preservation of units in integral extensions mean that they faithfully preserve divisibility properties of the base ring, so e.g. we can deduce divisibility properties of integers from divisibility properties of Gaussian integers and other rings of algebraic integers (where proofs my be simpler because we may be able to reduce nonlinear problems to linear problems via factorizations, e.g. classical proofs of Fermat's Last theorem for small exponents). This would not be true if some nonunit changed to a unit in the extension, e.g. if $2$ became a unit in the extension then proofs by parity would break down in the extension, so it would be weaker from a divisibility standpoint.