That valve is a "One Way Valve", or also known as a "Degassing" valve. Once coffee is roasted, it starts releasing CO2 -- a natural by-process of coffee roasting. Oxygen is the enemy of freshly roasted coffee, so the valve allows the CO2 and any remaining oxygen in the bag to escape without allowing additional oxygen in.