Because of the small area of the needle and the force that is exerted on the balloon. The pressure inside the balloon that was previously more, finally can diffuse into the room. Since the air canot all escape from the needle prick it bursts to equal the pressure.