I think as with all things it’s a spectrum. The sex of the partner is irrelevant but I will concede that men are more prolific than women.
for some it’s a one off event and then they are together monogamously forever once the original relationship/s end.
for others it’s triggered by something (could be a myriad of reasons) that is nothing to do with their (good) relationship. They make a stupid mistake then come to their senses and either come clean (then the original relationship either is saved or not) or they decide to never tell and live with the betrayal but stay in their relationship and never cheat again.
for others it’s a symptom of a bad relationship and wether the original relationship lasts or ends the cheating relationship just fizzles out because there was no real connection.
as above but triggered by an abusive partner. They meet a person who is not horrible to them they cheat with that person and it wakes them up to finally leaving their abusive partner (even if they then don’t end up with the person they cheated with)
for others it’s because they are just horrible selfish people and won’t stay faithful or loyal to any particular person including romantic partners.
iv known all the above scenarios, none to do with me though!
I also know a woman who left a lovely man for an absolutely terrible man. 20+ years on they are still together but it’s been a toxic shitshow for them for the children and for the man she left who she had had children with before she cheated and walked out. Much better for her ex now but the whole thing has been awful to see or hear about (I’m not involved!!!)