That's a common way to politely thank someone for a compliment, such as, "Your son is so polite and smart," Proper reply is "Oh, he's a mess," with a smile.