Masks only serve as isolation. Tiny particles can wear masks, but gasoline is a molecule, so it is useless.
There is activated carbon in the gas mask, which can absorb toxic and harmful gases, so it must be used.