This is is patriarchy in real time. He's attacking that guy's masculinity as a public reminder that real men enforce gender norms even in the most intimate relationships. It's preying on insecurity to control men to control women.
This kind of gender enforcement is pretty common for boys aged 4 until death. The trick of the true oppressor is to get you to surveil yourself.