In science a “law”
is a lesser concept than a “theory”. Theories include an
explanation of why something works the way it does. For example: the
theory of relativity, evolutionary theory, quantum theory, etc. But
when we posit a law, all that’s required is to formalize
observations of some type of effect.