You let air into the line, air is compressible fluid is not.
To BLEED the brake;
Squeeze the brake pedal and turn the little valve on top of the brake caliper where the hose goes in, air comes out,close the valve and repeat until only fluid comes out.