Because he is MESSED UP! Have you ever noticed messed up people tend to associate with other messed up people? Drug addicts hang out with other drug addicts, criminals hang out with other criminals, unhappy people hang out with other unhappy people, alcoholics hang out with other alcoholics, etc., etc.
Take this as confirmation that YOU ARE NOT THE PROBLEM. He is not with her because she is better than you, he is with her because he is messed up and so is she.
If she was a very healthy, together, successful, beautiful person it would be different. It's also proof there is something wrong with him that he may come through and your marriage be restored.
"Fear is the mind-killer" Muad'Dib Me 53, XW 44, DD 14, DS 12 Bomb and OM 12/15/06 Separated 01/02/07 Divorced 05/13/08 X married OM(OMH) 08/2009 Married 06/09/13