The original $12$ men are a set
(assuming they can be distinguished, which is a usual assumption in such problems).
Assuming the razors cannot be distinguished,
then you can represent one arrangement of the razors by a multiset of $8$ members
consisting of zero or more "copies" of each man.
That is, if the first man receives exactly two razors,
then the first man is listed exactly twice in the resulting multiset.
Hence $8$ razors can be distributed among $12$ men in $\left(\!\!\binom{12}{8}\!\!\right)$ ways.
The fact that $\left(\!\!\binom{n}{k}\!\!\right) = \binom{n+k-1}{k}$
is usually explained using the "stars and bars" method.
What this fact tells us is that the number of ways to choose $k$ elements from $n$
with repetition
is the same as the number of ways to choose $k$ elements from $n+k-1$ without repetition.
In this case,
$\left(\!\!\binom{12}{8}\!\!\right) = \binom{19}{8}.$
There is no obvious set of $19$ objects in this problem,
so we have to make one up,
namely the $19$ positions in a string of "stars" and "bars",
from which we are going to choose $8$ places to put a "star".
The other positions are filled with "bars".
The number of razors received by the first man is the number of stars before the first bar,
the razors received by the second man are the number of stars between the first
and second bar, and so forth.
Note that $\binom{n+k-1}{k}$ is just an ordinary "choose" using ordinary sets,
not a multichoose. There just happens to be a way to make each of these
ordinary subsets correspond to one of the multisets that are counted by
$\left(\!\!\binom{n}{k}\!\!\right)$.