The filter on a mushroom bag allows fresh air to reach the mushroom mycelium during the incubation and growing process without allowing contaminants such as bacteria or mould spores from entering the container.