Why do some men only flirt with a woman in front of others but act disinterested when they are alone with her?

Why do some men only flirt with a woman in front of others but act disinterested when they are alone with her?
Post Opinion