An HTML element's "id" attribute is used to identify the element inside a document. Every "id" in a document has to be different because the "id" identifies one element.
Elements that represent form fields have a "name" attribute that is used when the form is submitted.
All of the radio buttons in a group need to have the same "name". That is what makes them a group. They can't have the same "id", because that would break the rule that says all "id" attributes have to be different.