I've heard it many times, in different versions. I think it tries to soften what comes next, to defuse the confrontation aspect, and some people make a habit of it. When I was a grad student, there was faculty member known to preface all criticism with a compliment. The more complimentary his initial comment was, the worse the disemboweling of the speaker would be...