In evolutionary terms, a woman would want to give the man the impression that she'd never mate with another if he was gone or away. Whether that's true is a different question.
The human switch from a visible estrus cycle was a change which allowed monogamy-with-cheating to be a much more feasible strategy than with earlier primates - who knew when mating was going to happen.
I actually wouldn't say that monogamy-with-cheating is the only human social/sexual pattern since humans also evolved an incredibly ability to change their behavior based on their social system.
But don't assume that a society that overtly pushes monogamy will actually wind-up with husbands always fathering their official children.