Why do people flirt with you in front of others?

It can be insincere to flirt privately too but if you're making a public show of your flirting, it seems phony. Like my work crush would compliment me in groups like insinuating im attractive buthe never does that one on one
Why do people flirt with you in front of others?
Post Opinion