John 15:10 If you keep My commandments, you will abide in My love, just as I have kept My Father’s commandments and abide in His love.
Though our salvation does not rely on us being able to keep God’s commandments it is of great importance to us that we aim to do so to ensure that they are observed by us.
If we simply ignored them because we are saved by His grace then we make them of no affect; but by keeping them we bring them to our minds and hearts every day, bringing Christ closer to our hearts as we do.
God wants to show us His love and when we walk closer with Him by observing His law we will find that He can do more for us as well.