For me it depends. It depends on whether you can easily and reliably find items without an identifier.
In your example, yes, so adding an identifier is not waste, but just not necessary. However, this is all there is, an example.
In many web pages, when they become more complex and complex, the ID becomes your friend, because without it you will need to look for other ways to find elements.
Especially in the Selenium world, when you encounter this problem, you usually turn to CSS and / or XPath selectors.
Other selectors are not bad things, but they can work quite slowly in older browsers if you support them.
Arran source share