This is a law because it describes the force but makes not attempt to explain how the force works. A theory is an explanation of a natural phenomenon. Einstein's General Theory of Relativity explains how gravity works by describing gravity as the effect of curvature of four dimensional spacetime.