Why must there be a near vacuum in the tube of mercury barometer?

there must be vacuum in the mercury barometer because if air enters the tube the barmeter would become faulty as air pressure will change.