@corinth77777, it's a good question. The question arises due to humans not understanding the spirit of the Law(s). We can see that the religious leaders considered Jesus to have broken the letter of the Law, such as when he healed on the Sabbath. To them, Jesus had broken the Law, but Jesus tried to correct them by pointing out that the spirit of the Law permitted it in that it was OK to do good on the Sabbath (e.g., Matthew 12:12).
Jesus revealed that keeping the spirit of the Law was what God desired in various places, such as in Mark 2:25-28. Jesus confirmed it was OK that David and his companions ate the shewbread, which was only permitted for priests according to the letter of the Law (Leviticus 24:8-9).
God revealed that
in Christ the Spirit of the Law is what matters.
“This is the covenant I will make with them after that time, says the Lord. I will put my laws in their hearts, and I will write them on their minds.” Then he adds: “Their sins and lawless acts I will remember no more.” (Hebrews 10:16-17, 1984 NIV)
Paul pointed out that those who seek righteousness according to the Law will be judged by the Law (and will have failed and will perish) in Romans 2:12-13.
Having said all that, Jesus would have lived his life mostly keeping the letter of the Law to minimize any hindrance to people believing him (e.g., Matthew 17:27) as we see Paul did:
To those not having the law I became like one not having the law (though I am not free from God’s law but am under Christ’s law), so as to win those not having the law. (1 Corinthians 9:21, 1984 NIV)
Interestingly, the way this verse reads to me is that
Christ's Law (Spirit of the Law?) is considered God's Law. Something similar is implied in Romans 8:2. However, it is more direct to say that being reborn in Christ and living according to the Spirit means one has satisfied the requirements of the Law (Romans 8:3-4). Also see Romans 13:10.