The answer of your question lies in the concept of high energy physics. Beta decay is a weakly interacting process in which one of the neutron gets converted into a Proton with emission of an electron.
As we know, the quark content of neutron is 'udd' and for proton is 'uud'. In beta decay, one of the 'down' quark get converted to an 'up' quark with the emission of a 'W^-' boson, which immediately decays to an electron and an antineutrino.
An interesting thing here is that, the emitted electron cannot be termed as conventional electron. The emitted electron is also known as beta particle which have energy in the order of MeV, but it has some properties same as orbiting electron.