No water leaks out because the bag is made of a polymer. Polymers are made of long chains of flexible molecules. When the pencil is poked through the bag, the flexible molecules move to allow the pencil to pass through and form a seal around the pencil.