He did the best thing, remain still and let it know you are no threat. Had he done anything else like swat its nose it could have yanked that whole tree stand down.
Bears are great climbers, I remember seeing a mutual of omaha where they showed a couple bears fighting and the loser scrambled up a tree like it was a ladder, then climbed out on a branch, straddled it and laid there until the threat left. Thats why I always call bs when I hear people say to tie your food up to a tree branch, it better be a small branch the bear won't walk out on.