I know what you mean. This does need to be improved.
What it's doing is attempting to preserve any information in the GEDCOM so nothing is lost. The "FAM" information in a file could be from where the individual is a child or parent in the family. We don't currently distinguish when we're salvaging the info.