Did those neighbors testify that they saw him attempt to rape his wife
Nope, they didn`t. However, they testified about earlier cases of abuse coz the woman had confided in her friends or close family that her husband had beaten and raped her against her will.
But, women aren't always innocent and truthful
Of course, being a woman doesn`t mean you are automatically a saint. But in this particular case three courts were pretty sure how to rule. :):)
It is the Prosecutor's duty to investigate these crimes
Yes, but too often they also feel it is their duty to accuse and demand sentence against common sense, at any cost, just to show how efficient they are.