The other answers have shown how to see this fact as a special case of more abstract results. But this special case is almost trivial to see directly, so I wanted to complement the other answers with a very concrete explanation.
First, let's be clear that for an $R$-module $M$, the $R_{\mathfrak{p}}$-module $M_{\mathfrak{p}}$ is (by definition) the set of equivalence classes of fractions $\frac{a}{b}$, where $a\in M$ and $b\in R\setminus \mathfrak{p}$.
So the $R_{\mathfrak{p}}$-module $\mathfrak{p}_{\mathfrak{p}}$ consists of equivalence classes of fractions $\frac{a}{b}$, where $a\in \mathfrak{p}$ and $b\in R\setminus \mathfrak{p}$. The equivalence relation on fractions and the operations of addition and multiplication by elements of $R_{\mathfrak{p}}$ are defined exactly as they are in the ring $R_{\mathfrak{p}}$. So $\mathfrak{p}_{\mathfrak{p}}$ is naturally identified with a submodule of $R_{\mathfrak{p}}$, and it remains to show that $\mathfrak{p}_{\mathfrak{p}}$ is equal to $\mathfrak{p}R_{\mathfrak{p}}$ as subsets of $R_{\mathfrak{p}}$.
In one direction, if $\frac{a}{b}\in \mathfrak{p}_{\mathfrak{p}}$, then $a\in \mathfrak{p}$ and $b\in R\setminus \mathfrak{p}$, so $\frac{a}{b} = \frac{a}{1}\cdot \frac{1}{b}\in \mathfrak{p}R_{\mathfrak{p}}$. In the other direction, an element of $\mathfrak{p}R_{\mathfrak{p}}$ can be written as $\frac{a}{1}\cdot \frac{c}{b}$, with $a\in \mathfrak{p}$, $b\in R\setminus \mathfrak{p}$, and $c\in R$. Then $\frac{a}{1}\cdot \frac{c}{b} = \frac{ac}{b}\in \mathfrak{p}_{\mathfrak{p}}$, since $ac\in \mathfrak{p}$.