The point is that the young man did not keep the commandments like he said he did and Christ was pushing him to that conclusion. Only God is good and we are bad, and the only way that we are seen as good is by placing our faith in Christ and having his righteousness imputed to us.