It is possibly to filter gases of similar molecular weight.
https://en.wikipedia.org/wiki/Membrane_gas_separation
This technique is routinely used to generate concentrated supplies of oxygen or nitrogen, but is wildly expensive compared to ventilation.