Just guessing that it was a "community property" jurisdiction and the CA judge thought that the property gifted (or the money that bought those gifts) were jointly the wife's property.I’m not sure what country this divorce is happening in but there was the California case of the wife of the former NBA Clippers owner who sued his mistress for all the gifts he gave her under California law and won.
Shelly Sterling Sues husbands girlfriend