Although traces of this knowledge were lost in the Cataclysm, we know for certain that at some point during the golden age of magic, the elfin Great Mage Imelrich, a highly controversial figure, pioneered the magical creation of life in an attempt to provide his people with loyal and magically capable thralls.
What he brought into existence, however, was so hideous in the eyes of his kin that it sparked the Chimerian Wars, which concluded in his swift demise and the banishment, or what elfs like to call "liberation", of the creatures to a magically formed underworld.
It is generally accepted within the academic community that kobolds were the creatures in question. The theory is supported by the few documents that have survived from the time of the Chimerian Wars. The only problem is that elfs were never keen on practical history back then, leaving us with poetry rather than recorded fact. Even so, the descriptions we have should suffice: "Ashen, cadaverous fiends, slithering and snivelling. Know that writing this contorts my arm: they walk on two bent, hoofed legs and bear the faces of disfigured infants, complete with whiskers and cats' tails. Their thick nails are as sharp as the claws of a badger on both hands and feet; their eyes glisten with hungry obedience. The beasts excel at our magic, particularly thanaturgy, but they lack the mind to put the simplest sentences together. Unnatural does not begin to cover the insult their existence poses to the Beauty itself. They must not walk the land of day."
It is known that elfs, in a fit of compassion so typical of them, couldn't bring themselves to commit genocide, and instead went about it in the most convoluted way: using powerful, forgotten magic, they terraformed the underground of Avylon into a habitable world, known today as the Earthveins, and forced the creatures there (indeed, denying them the right to walk the land of day).
It's assumed that the creatures, knowledgeable in elfin magic and with the support of a small group of benefactors, learned the workings of terraformation and slowly but effectively expanded their "empire" across Sarnout.
These facts contribute further to the kobold theory, as we know for sure that it was highly improbable for kobolds to have evolved their attributes in a troglobitic environment, and we also know that some kobold warrens have a sacred caste of earth-knowers, who hold the secrets of terraforming magic.
Naturally, modern kobolds reject the theory outright. Those few who communicate with the surface dismiss the claim as arrogant elfin propaganda, refusing to associate themselves with such an origin. For that matter, the overwhelming majority of warrens have never even heard of the theory in the first place. An outsider suggesting to an earth-knower that their kind were bred as slaves would likely be met with confusion, if not a pickaxe.