Divorcing your wife and marrying another for lust is adultery.  Divorcing your spouse for being an alky, beating you, cheating on you is survival, as is getting remarried for love and economic security.  These teachings are for our benefit, not for God or piety.