When it's the husband who's cheating, he's demonized and shown as the bad guy. When the wife "has an affair" (sounds much nicer than cheating), the movie takes her side and justifies it. The difference in approach is obvious. The cheating husband is punished also much more than the unfaithful wife.