The law can only exist if 1) people are moral with a sense of responsibility to God and to their fellow man. or 2) if people live in fear of government punishment for breaking the law. The first, is much superior to the second, because the second is subjective and invites injustices to occur.
What you say is true, but there is a small component of society that holds itself out as the "law givers." This is primarily the lawyers, working through judges and to a large extent legislation and regulations - although breakdown there is, IMO, a smaller issue.
The law givers have the responsibility to maintain the moral legitimacy of the institution they occupy. If the institution fails, it is their fault, not the fault of society at large.
The law givers are an arrogant lot, and have decided that law alone is sufficient to maintain good order. That is a power the law givers do not have, in fact. But as long as they think they do, you can rest assured their actions will go down path #2, use of force to compel obedience to their nonsense.
The law givers are setting a very bad example, and human nature will take its course.
As John Adams put it, “Our constitution was made for a moral and religious people.”