So coming from compassion allowed him to later bury that compassion by sometimes taking the husband's side if he paid more (if the allegation is true)?
It's not about taking the husbands side, it's about beating someone when there is absolutely no halachik right to do so (even if he ever had a right to do so). Many times the husbands side is halachikly correct.