Fuel tanks need to allow the air to enter as the fuel is drawn in to the engine - i.e. to prevent a vacuum forming and eventually starving the engine... but, at the same time, you don't want your fuel to spill when moving the tank around, or to evaporate away when stored. Mine has a small breather on the filler cap, with a grub screw for "open / run" or "closed /store".
There's been many occasions when the engine has got a bit "lumpy", or has cut completely, and it's because I've forgotten to open the breather valve