If the first bike is a road bike and the 2nd a mountain bike that is likely the difference, rather than the gearing. A mountain bike typically has heavier wheels with lugged tread that is much slower on pavement than the higher pressure smooth road tires. It it simply not possible for higher gears alone to produce more speed.