Laws and moral judgements don't necessarily go hand in hand. While hitting your wife is illegal by law, abandoning you're family is considered immoral, but it's not illegal. Some laws that have been passed, are now considered immoral, such as the Jim Crow laws, the internment camps for Japanese-Americans, and laws that made runaway slaves return to their owners. Some forms of interrogation are now considered a form of torture and immoral.
Laws and moral judgements don't necessarily go hand in hand. While hitting your wife is illegal by law, abandoning you're family is considered immoral, but it's not illegal. Some laws that have been passed, are now considered immoral, such as the Jim Crow laws, the internment camps for Japanese-Americans, and laws that made runaway slaves return to their owners. Some forms of interrogation are now considered a form of torture and immoral.