For the flow of electrons in a vacuum tube like vacuum diode, vacuum is required in the inter-electrode space otherwise,
(a) electrons will not be ejected from cathode
(b) extraction of electrons from remaining gas molecules or atoms will increase abruptly
(c) work function of cathode will be reduced
(d) electrons may lose their energy on collision with air molecules in their path