It's carbon canister that absorbs fumes from the tank and carb and then adds it back to the engine for burning. Is it absolutely necessary? No, but if you just vent to the atmosphere you can get a gassy smell on hot days.
If you're staying stock, I'd say leave it.