Generally, banks take numbers by credit card or passbook. It is for the convenience of waiting, not waiting in line all the time.
Number fetching machine is short for queuing number fetching machine. For a long time, people have been queuing in business halls such as banks, hospitals, telecommunications, taxation, industry and commerce, sometimes for more than an hour.