Origin of the exponential distribution of traps in glass