Just because it's the law doesn't make it fair or correct. Whether or not she's ready to rejoin the work force after said divorce is really not the obligation of the husband. That might be the law, but it's WRONG.
Some laws aren't fair, but in this case, we're talking about a 6+ year marriage where he earned a lot more than she did, for whatever their own personal reasons might have been for that The court doesn't look at those reasons, they don't, they can't say "well he tried to make you work but you just didnt so we will rule accordingly". It would be too time intensive to dissect a case to that extent, it just wouldn't be practical and it would be completely up to the testimony and credibility of the two partners, one or both of which will lie, because, that's what people do.
So the courts look at the numbers, and the laws of the state, which are not unfair when they give the non working/non monied spouse a short 2 years worth of support to give her a chance to become self supporting.
Sure lots of guys would just like to pull the plug and walk away and have nothing to do with their exwife after the divorce is final, but when they've been supporting their wives for years, that's just not reasonable or the least bit fair even if we don't like it.
You should be responsible for yourself and have to be provided for by someone who's no longer in your life. If you put yourself in a situation where you end up divorced with no money to call your own, that's should be your damned fault.
They are BOTH responsible for the situation, not just her. She refused to work as much as she might have been able to, and he allowed it to perpetuate for the entire marriage. That's on him, not the courts or the legislatures who make such laws.