A set partition into $k$ parts is unordered partition of a set $S$ in unordered collection pairwise disjoint sets $S_1,S_2,...,S_k$. Number of set partitions of ${1,2,...,n}$ into $k$ parts is $S(n,k)$. Also a set partition of ${1,2,...,n}$ is equivalent to $ \cdot \times Seq\{1\} \times \cdot \times seq\{1,2\} \times \cdot \times \ldots \times seq\{1,2,\ldots,k\}$ where $\cdot$ and all numbers $j$ have size $1$. To see this if a number $l$ is at position $j$ then you put $j$ in $S_l$ and if $i^{th}$ dot is at position $j$ then you put $j$ in $S_i$. So
$$ \sum_{n\geq 0 } S{(n,r)}x^n = \dfrac{x}{1-x}\times\dfrac{x}{1-2x}\times\ldots\times\dfrac{x}{1-rx}$$
Extracting coefficient of $x^n$ you get your formula.