Stumping someone means ask someone a question they can’t answer. However, it actually refers to tree stumps.
Pioneers built their houses and barns out of logs and frequently swapped work with neighbors when clearing new ground. Some frontiersmen would brag about their ability to pull up big stumps, but it was not unusual for the boaster to suffer defeat with a stubborn stump. In other words, he was stumped.