The Passuk in the Torah outlining the rule for divorce is that if a husband loses favor in his wife. My question is, why in Halacha do most poskim rule that prenuptial agreements are fine and gittin after that are fine if the reason for the husband giving the get has nothing to do with the wife but because of external pressure (in this case from the beit din)?