This is a consequence of the fact that localization is an exact functor (see the comment section for this and other helpful remarks).
Exactness implies that localization (at arbitrary multiplicative subsets) commutes with quotients, which in this case gives us $(A / \mathfrak{p})_\mathfrak{p} \cong A_\mathfrak{p} / \mathfrak{p}_\mathfrak{p}$. This (considered as a ring, not an $A$-module) is also a field.
For the sake of completeness, let $\mathfrak{a} \subset A$ be an ideal and $S \subset A$ some multiplicative subset. The exact sequence
$$0 \rightarrow \mathfrak{a} \rightarrow A \rightarrow A/\mathfrak{a} \rightarrow 0$$
localized at $S$ yields the exact sequence
$$0 \rightarrow S^{-1}\mathfrak{a} \rightarrow S^{-1}A \rightarrow S^{-1}(A/\mathfrak{a}) \rightarrow 0$$
which immediately gives $$S^{-1}(A/\mathfrak{a}) \cong S^{-1}A/S^{-1}\mathfrak{a},$$ as needed.