Because the ten commandments had to be taught as were since Moses received them. Jesus repeated the teaching of Moses, bringing them to the true meaning, this was brought from the old scriptures. Meanwhile the ten commandments penalties and sabbath were nailed in the cross because were a heavy burden that neither the jews nor the gentiles could carried.