Molecular weight is indeed a factor in both but weight is distinct from compactness. Compactness refers to how well a protein folds - globular proteins are more compact than extended structures. So say you have a 100 kDa and 125 kDa protein. In terms of weight, the second one is heavier and you would expect it to migrate slower. However, say the second one is a globular protein whereas the first has a lot of extended beta sheets. The second is thus more compact and in a native gel, it may well be that the second one migrates farther than the first. In a native gel, this so-called "apparent" molecular weight is misleading as to the actual molecular weight and you can't identify a protein using only a molecular weight ladder.