(I don't know the best way to set up the context of this question, so I am just going to say whatever I heard people keep saying, according to my poor memory.)
Let $k$ be an algebraically closed field. An affine $k$-variety is the space $\operatorname{Spec} A$ for some finitely generated integral domain $A$ over $k$. (Different people have different conventions for affine variety, so let's not pay too much attention to that.) In this context, we often ignore points in $\operatorname{Spec} A$ that are not maximal ideals. For example, this means we can identify $\operatorname{Spec} k[x_1, \cdots, x_n]$ with points in $k^n$ by the Hilbert Nullstellensatz and $\operatorname{Spec} k[x_1^{\pm 1}, \cdots, x_n^{\pm 1}]$ with the algebraic torus $(k^\times)^n$.
Honestly, I am not confident that we can always do that, but yet from my experience of hearing other people's talks, this seems to be quite a common thing to do/assume. Intuitively, every ideal is included in some maximal ideal, so this ignorance kinda makes sense, but I never recall Vakil doing that in his FOAG (maybe he does but I just forgot). I guess my (rather broad) question for today is that: can we always do that? If not, then why do people keep ignoring nonmaximal ideals in certain settings (and in which settings are this ignorance permissible)? When we write proofs, how do we even make this precise, because setwise you really can't identify $\operatorname{Spec} k[x_1, \cdots, x_n]$ with $k^n$, as $k[x_1, \cdots, x_n]$ do contains nonmaximal ideals?