How a petrol station works
Fuel is stored underground at filling stations until sale, when pumps lift the petrol from the tanks to above ground level, at the same time metering the amount of fuel sold.
Petrol and diesel are kept separately from one another, as are normally the different grades of petrol.
Careful attention to the design of the filler inlets and vents prevents water getting into the underground tanks and contaminating the fuel.