If the battery lasts for two years its exceeding the useful life of many other products already, some of which of have higher environment cost for manufacturing and disposal.
The law has chosen poor proxies for lifespan and impact.
The problem with plastic straws was properly disposing them. For a piece of jewelry I doubt many people would throw it away on the side of the road. A ring that last for years is different than a disposal product that people may use for a couple of minutes.
Products are supposed to last two years at the very least in EU (local laws may be more strict, but not less). If your product dies before that time, the customer will cite warranty, and there you go. This device is likely one of the many 'designed to last a little bit more than two years', with the emphasis on 'little bit'. It appears to be a perfect example of planned obsolescence.
The law has chosen poor proxies for lifespan and impact.