Why do some women think it is okay to flirt and touch another woman's husband especially in front of the wife?

This has happened to my best friend and I. Of course, our SOs shut them down, but it is so disrespectful.