Honestly, the gun-in-the-leg thing was an unnecessary gimmic, IMO--no reason he couldn't have just had it in a holster, except they needed to have the kids see the "robot leg" so the FBI guy could mention it (and presumably set him up to start wondering whether Sarah's actually right about all this).
And, well, he was posing as a substitute teacher.