The $\beta^-$ decay is
\begin{equation} n \rightarrow p + e^- + \bar\nu_e \tag{1} \end{equation}
It can be broken down into
\begin{align} d \rightarrow & \ u + W^- \tag{2}\\ W^- \rightarrow & \ e^- + \bar \nu_e \tag{3} \end{align}
Why (3) cannot decay into $(\mu^- + \bar \nu_\mu)$ or $(\tau^- + \bar \nu_\tau)$ ?