Guys tend to want to date younger women. Not all, but most of the time. A woman of 22 will have available men from 21 to 40+ being interested in dating her.
A woman's pool of prospective suitors shrinks every year. The good men get snatched up as each year goes by, until by age 40 the pickings are slim.
As far as women who you thought less attractive than their boyfriends did, a lot of a woman's desirability comes from her attitude and enthusiasm. My wife is no longer the cute girl with the perky breasts I first met close to 40 years ago, but she still strives to make an effort to keep me happy.
You have to have been a man's wife from his youth for that to work.
When my husband and I met, I was in my early twenties and he was in his thirties.