Research shows that men flirt for a number of reasons. Some of these reasons include sex, flirting for the fun of it, insecurity, etc. It is, therefore, possible that your man is flirting in front of you because he is insecure. By flirting, he is trying to elicit positive responses from other women to affirm to himself that he is also wanted by other women.