It's purpose is to prevent water from being sucked up the hose, while riding in the rain, shutting down the venting of the tank, thus causing gas starvation.
The reason I know this is because back in 2000 -2001, I removed mine thinking it was a mistake. I made the mistake and found out it's purpose the next time I got caught in a rain storm.
