The joke is a pun. A galleon is a type of ancient seagoing vessel.  'Galleon' sounds like 'gallon', a unit of measure of liquid volume.  One might use gallons today to determine the mileage of a car based on gas intake as 'miles to the gallon'.
In ancient times , seagoing vessels were much more fuel efficient . They got thousands of miles to the galleon .