Thanks for noticing that Alan! You are right, both “type” and “id” attributes don’t serve any purpose in this example.
“type” is a leftover from an SVG export and “id”s are not being used. As you said, there is no reason to have them here. If this was production code they would be already gone ;)