If that was the case ego stroking would never work. It does. It is the easiest way to get persuade people. Everyone deals with hundreds of people per day and ego stroking works on most people (maybe not to the extent that gets you what you want, but it works).
People like to be complimented on their work/skills/whatever. Context for receiving the compliment is irrelevant.