It's an insult. If someone calls you dim-witted, you would likely be offended. It's a way of calling a person slow, not bright, dumb... ect. If you tell somebody, "You're surprisingly dim-witted," you're basically saying you thought they were smarter than what they really are.