what does a master cylinder do on a car
The master cylinder is a hydraulic pump. As you pump the pedal, it forces the fluid into the calipers/wheel cylinders (or clutch bearing for a clutch master cylinder). This works really well because fluid does not compress. Air, however, compresses quite easily, so any air in the braking system will reduce the hydraulic pressure by large amounts.