As tree sap flows through the sapwood part of the tree, it produces carbon dioxide. This creates positive pressure and if there are any wounds or holes in the sapwood, the sap will ooze out. This is how harvesting saps from trees is achieved; cut or create a hole.