In the process of emission of a β-particle from the nucleus, a neutron changes into a proton by emitting a β-particle (electron).
Hence in the nucleus, the number of neutrons decreases by 1 with the emission of a β-particle and the number of protons increases by one. So the sum of protons and neutrons, i.e., atomic mass remains the same but the atomic number increases by one.