Who's throwing away mouses? They last at least a decade, likely two. And for most people there's no software involved (that isn't installed and handled by the builtin drivers in their OS)
I had stuff like this happen o a few mice where they just seem worn out after a while.
And of course there was one that I slammed on my desk in frustration over something and broke it. Oops.
Sometimes quality is just crap.
Although I shouldn't say "never". I have a box full of keyboards, too, but needed a real PS/2 keyboard recently and discovered that I didn't save any from the last time I did an equipment purge. So I had to buy one from the reseller (which was where I donated my old ones to begin with. It's not impossible that I bought a keyboard I gave to them!)
If you're just going to dispose of them in the long run, why would you want to "own" one anyway?