It's important for me. If sex stops for a very long period in a relationship, i seek it out elsewhere.
I would hope no one would leave their spouse if it was medical reasons. That would be majorly selfish and would clearly indicate the marriage had other problems much larger than sex.
Like 90% of the over 50 male crowd here, sex, of course is very important to me, but it's not me that needs to prioritize it....