There is a Pasuk in Shmot 24:12 that says:
I will give you the stone tablets, the Law and the commandments, which I have written to instruct them.
The Gemara in Berachot 5a explains that the tablets refer to the "10 commandmants", "Law" to the Torah, and the word "written" to the writings and Prophets and the word "commandments" to the Mishna and the word "to instruct them" to the Gemara. This all comes to teach us that all of the above was given on Mt. Sinai.
As far as I understand, Chazal have a tradition about the origin of the Oral Torah and a verse about the 10 commandments and try to connect them.
It is as if I try to read oral Information given by A into a letter given by A.
Why do Chazal saw the need to do that?