1. On pulling the piston of a syringe with the inlet hole of the syringe closed, more space becomes available to the air in the syringe, and it becomes rarified.
2. As a result, the pressure of the air in the syringe is lowered.
3. Comparatively the pressure of the outside air is very high. So when the pulled out piston is A released, it is immediately pushed in.