What's with TO-252 package middle lead?
Several different packages (both SMT and through-hole) are all based on the same lead frame. The only difference is in how the lead frame is trimmed and bent after the epoxy encapsulation has been added.

It is less stressful on the adhesion between the epoxy and the lead if the trimming is not flush to the epoxy, so a small stub is left.