Do you ever hit on other people while in a relationship?

I am dealing with this very flirty guy at work, he's really hot. Its a huge confidence booster. Through creeping on social media I saw that he has a girlfriend.

Why would he be flirting with/hitting on me?
Do you ever hit on other people while in a relationship?
Post Opinion