There are "n" boxes. Balls are placed randomly in the boxes one at a time until either box receives two balls. What is the probability of exactly putting p balls in boxes?

I don't understand why the denominator in probability is $n^p$. shouldn't it be all possibilities ($1$ ball, $2$ balls, ..., $(n + 1)$ balls)?