That rule unfortunately does not go well with the goldfish, that rule was meant to be for tropicals. Sadly still, many pet store employee throw all the fish in one bowl, so to speak, and apply the rule for just about every fish.
The tipoff that this isn't quite right should be the size difference between a tropical and a goldfish. The latter one is so much larger, and has so much more output of waste and ammonia, and a much higher demand on oxygen. It doesn't make sense to put a goldfish in the same category than a tropical.
Of course, a tiny little goldfish in the store doesn't look much different in size than a tropical, but take one home, and you'll find out that the goldfish starts growing and growing, while a tropical stays pretty much....well, tiny.
In simple terms, thats why we endors the 10 gl/fish rule, or even more for single tailed fish and extremely big fish. Of course, if you ask professional breeders of fancy goldfish, they'll tell you that their breeder fish get even more space than that. But thats an entirely different prospective, since the breeders most likely has big ponds and tubs, while most of us have aquariums at homes.
Either way, you not only do your goldfish a big favor when getting the biggest possible and affordable tank for them, it also helps the owner along greatly. A lot less maintenance comes from a bigger tank, less water changes, much more stable water parameters of pH and temperature, etc.
Once you are addicted to bigger tanks, you'll never go back. Speaking of experience here.....(founder of the GAA - Goldfish addicts anonymous...

)