To be fair, imperial gallons are based on 10 lbs of water (with very specific atmospheric conditions), which while a nice round number, isn’t as easy to recreate as the U.S. gallon, which is 231 cubic inches.
Of course, liters make way more sense than either of these.