How does the cpap machine release the Co2 gas?

Normally, when using a CPAP machine for patients who use the mask. The mask body has a ventilation hole for venting CO2 gas, allowing the CO2 gas from the patient's exhalation to be discharged normally.