However, I think the opening of the TV show covered that in a satisfactory manner: Banner was trying to develop a procedure to artificially augment human strength via his gamma ray machine. He got impatient, tested the machine on himself and, as a result of his own actions, was transformed into the Hulk.