That's not true, you only get to that figure with 5,000 nominal dollars and 6.2% unadjusted interest
>>> def comp(s, n, i):
... m = 0
... for x in range(n):
... m *= i
... m += s
... return m
...
>>> comp(5000, 77, 1.062)
8201943.704759633
So there were some abnormal returns (or inheritance) involved.