What you fail to understand is that commandments such as do not lie are part of a good foundation for a value system in our court of law. You also don't understand that no matter what your belief system is, everyone and I mean everyone, consults a framework of morality whether their concepts are considered to be religious or not. Hence, all laws can be considered to be based on morality and all abstractions of morality can be derived from various religions. You can construct new religions based on morality.