What we call laws of physics are just consistent mathematical theories that seem to match some parts of nature. This is true for Newton’s laws of motion as it is for Einstein’s theories of relativity, Schrödinger’s & Dirac’s equations in quantum physics
https://www.newscientist.com/article/2349359-why-the-laws-of-physics-dont-actually-exist/