Think this through: who is the beneficiary of the insurance?
Answer: the wife who the dude cheated on.
Hence this bizarre ruling. They were taking care of the wronged wife.
You are correct.
In that case, I still think it’s a bad ruling but I do see that point and agree with their motives, if that’s what it was.