"Why do some English words have a double-consonant?"
Well, the short answer is that they do and you need to learn it that way.
Apart from that, sometimes the double-consonant exists to make the vowel before it short. Compare "tiny" (long i) and "tinny" (short i). Some short verbs need a double consonant when you add -ing, eg. "stop / stopping". If you write "stoping", then the o is long... and it's not even a word that we recognise.
There are many conflicting rules for English spelling, so if you rely only on phonetic rules you will make many mistakes. Just accept the spelling, remember it and you'll have no problem.