Flooded batteries have a vent for Hydrogen gas which is explosive so the hose is to vent it out of the hull. You will see a little drain tube on the batteries.
If you use a sealed maintenance free battery or an AGM then the hose doesn't connect to anything.