The following is some intuition behind the formula.
The Gamma distribution answer the question: 'How long do we have to wait between $a$ events with exponential wait times of $\frac{1}{B}e^{-t/B}$?'
For $a=1$ it's distributed as $\frac{1}{B}e^{-t/B}$, we already know that, it's just the exponential distribution.
How long will we have to wait for two events? In other words, for $a=2$?
Let's talk about the likleyhood of waiting $5$ seconds ($T=5$) if we have to wait for two exponential events ($a=2$)
Roughly $P(T=5| a=2) = \sum_0^5 P(T = i| a=1)P(T = 5-i|a=1)$
We can slice time into smaller slices until the above is an integral.
$p(t=5) =\int_0^5 p(T = i | a=1)p(T = 5-i| a=1)di = \frac{1}{B^2}\int_0^5 e^{-i/B}e^{(-5-i)/B} di=\frac{1}{B^2}\int_0^5 e^{-5/B} di= \frac{1}{B^2}e^{-5/B} \int_0^5 di = 5\frac{1}{B^2}e^{-5/B} $
replacing $5$ with '$x$' we get:
$p(t=x|a=2) = x\frac{1}{B^2}e^{-x/B}$
Let's now increase to $a = 3$
In the following the double integral is over the area $i+j < 5$
$p(t=5) = \int \int p(T = i| a=1 )p(T = j| a=1)p(T=5-i-j| a=1)didj = \frac{1}{B^3}\int \int e^{-i/B}e^{-j/B}e^{-(5-i-j)/B} didj=\frac{1}{B^3} e^{-5/B} \int\int didj= \frac{1}{B^3}e^{-5/B} \int\int didj = 12.5\frac{1}{B^3}e^{-5/B} $
Where $12.5=\frac{5^2}{2}$ is the area of the integration triangle with side lengths 5.
replacing $5$ with $x$ we get:
$p(t=x|a=3) = \frac{x^2}{2}\frac{1}{B^3}e^{-x/B}$
As we increase to higher $a$'s we will be integrating over simplexs of dimension $a-1$.
Therefore:
$p(t=x|a=n) = \frac{x^{n-1}}{(n-1)!}\frac{1}{B^n}e^{-x/B} = \frac{x^{n-1}}{\Gamma(n-1)B^n}e^{-x/B}$