Why is cheating okay for men?

I keep hearing guys saying that cheating is okay for men but not women. Why? They say “My heart isn’t in it” a girl could say the exact same thing. I just don’t understand this concept at all. It seems childish, “I can do whatever I want because I’m me, but you can’t because I said so.” It’s very odd.