I think your oberservation may have some merit in your case.
In mine, my wife was raised in a super-strict religious upbringing, which I thought she made peace with. Turns out I was wrong. We both were married in the church and raised our children in a Christian, but less strict environment. Turns out that her affair co-incided with her decision to leave the church/faith. For her, it's a whole life direction, discovering "who she really is". It's related to anger at her father (a minister), men in general, and certainly the issues in our marriage.