The brake cylinder is only supposed to have a certain amount of travel on it. Too much and the piston inside can get ejected and seals can get damaged. When the brakes are assembled and the drum is on, the shoes pressing on the drums is what limits how far the piston in the brake cylinder can travel. Remove the drum though, and there's nothing to stop it. When you press the brake pedal without the drum in place, the piston comes out of the cylinder, seals and boots get damaged, fluid squirts all over, and air get into the brake line.
You're going to need to replace that brake cylinder and bleed the line. If there was fluid leaking out before you removed the drum and pressed the brake pedal, then it needed to be replaced anyway, as it was already leaking.
You're going to need to replace that brake cylinder and bleed the line. If there was fluid leaking out before you removed the drum and pressed the brake pedal, then it needed to be replaced anyway, as it was already leaking.