How can a woman who has lost interest in sex be so selfish to not give it up to her husband who still desires it? Isn't that totally selfish?

I have friends who haven't had it for some 5-8 years because their wives aren't into it anymore. How can a woman say she loves her man but cut him off intimately and expect him to stick around and not resent her for it?