It keeps fuel from siphoning out of the tank if a line (or something breaks) below the level of the tank. This would prevent fuel from siphoning out and possibly fueling a fire or creating a worse fire or a fire hazard.
It's also a coast guard regulation that they have one.