Marriage isn't meant to make you happy - it's there because it gives you a life in which you can find happiness.
The one word I hear when people have affairs is that they feel alive. They don't talk about the fact they're having sex. They feel like they are engaged with their life. They describe an experience that beats back the deadness inside, which isn't the fault of the marriage or the partner. It's often the deadness that they have allowed to creep in for years on their own. But by definition, it's a transgressive act. And transgression is a breaking of the rules. And it gives you a sense of ownership and freedom. And ownership and freedom gives you a feeling of aliveness. It's a chain.
There is not one person who can fulfill all your needs. You may choose a partner who is your intellectual equal, and he may not be your most compatible sexual partner. And then there's the duality between security and adventure. A relationship that gives you plenty of novelty, and adventure, may not provide the stability you long for. Time, continuity and familiarity with somebody gives you other things in life but won't necessarily give you the kind of intense lustful experiences that you may have when you first meet someone and are curious about penetrating the mystery of them.
Secrecy fuels erotic intensity because it makes you feel like you're doing something that is entirely yours. It gives you the sense of autonomy, the sense of freedom, and the sense of sovereignty. And then you add to that the sexual energy. In many affairs, people will tell you they slept with the person three or four times, but the story went on for months. That's an important thing because many people who have affairs often have very good sexual relationships at home. It's not necessarily a compensation story. But affairs offer a different sexuality with a different context.