It's left intentionally mysterious, presumably to be answered in future installments of the game. As others have mentioned, Lord Kagrenac was experimenting with ways in which the dwemer might become immortal, and in doing so doubtless invoked the wrath of one or more of the gods. He created the...