Out of the $ n $ people, let us find the probability that a group of $ n - 1 $ people having the same birthday month as the one person we choose randomly.
In other words, the one person we choose randomly can have his/her birthday in any month. We find the probability of the rest of the people have the same birthday month. That is just $ \boxed{\dfrac{1}{12^{n-1}}} $
As an example, consider a group of 14 people. Let one person have his/her birthday in January. Now, what is the probability that the $ 13^{\text{th}} $ person has his birthday month as January? It is $ \dfrac{1}{12} $ Similarly, what is the probability that the $ 12^{\text{th}} $ person has his birthday month as January? $ \dfrac{1}{12} $ We can do the same for all the $ n - 1 $ people. And for all these events to happen together, we multiply them. Hence,
$ \dfrac{1}{12} \times \dfrac{1}{12} \times \dots \dfrac{1}{12}$ (13 times) is $ \dfrac{1}{12^{13}} $