The hero didn't learnt them, it was programmed to run through fights until it hit a checkbox that meant you physically couldn't win.
must be real fun at parties