A physical basis for the generalized gamma distribution