Because this is a fantasy universe and the creation or discovery of gunpowder is up to the writers of said universe. Magic is an already implemented construct.
Then reiterate what I said and replace it with the creation of firearms. There is no existing lorerpage besides small coverage in alchemy and no proper page defining its use.