Here's why:
* British English: The "-elling" ending is more common in British English.
* American English: The "-eling" ending is more common in American English.
This difference is due to the evolution of English spelling over time, and different dialects have adopted different variations.
Neither spelling is incorrect. It's a matter of style preference and which variety of English you're using.