Someone above u spoiled, its cause he really wanted to have a kid with her but found out shed been using contraceptives secretly since she isn't confident she'd be a good mother, he felt betrayed and wanted to hurt her with the affair and hoped she'd kill him in revenge. Dudes self destructive.
Also apparently he ends up dying at the end after wife gets some personal revenge (exposes their affair to the public, divorces husband who still crazily "loves" her) and mistress goes to prison after killing the husband.

The husband being a yearner omg why did they make him cheat(/TДT)/ I need spoilers so badly