I believe the general rule was that you would double the consonant to preserve a short vowel, thus, compel, compelled but compete, competed. Then US'ns decided that it really didn't matter if the final syllable was unaccented so we dropped the rule.