Why do some men feel the need to get female attention when they have a solid relationship with a good woman?

Throughout the entire 10+ years of our relationship my husband has been flirting with women through social media or work. Every time I caught it he says he's sorry and promises he'll stop until the next time I catch him. He says there's nothing lacking in our relationship and he doesn't know why he does it.
Why do some men feel the need to get female attention when they have a solid relationship with a good woman?
Post Opinion