The issue with Joycons is so much more pronounced. I used the same 360 controller with my PC for about a decade with no issues. The Series x controller I’ve used since then is fine.
My joycons were drifting less than a year after I bought the switch.
Mice are not immune to failure and I have had mice fail on me. Have you been using the same mouse for 20+ years? My favorite one (Saitek Cyborg RAT7) died at the year mark and I won’t buy another one from them for fear of the same thing but it was adjustable in every dimension and as a result was the most comfortable mouse for my merry paws.
I'm not denying that eventually most controllers will drift, but the speed at which these controllers developed a drifting problem was much higher than what is expected on average, even for cheaper made third party controllers.
The scale of the problem is totally different. I've used a bunch of Xbox controllers that never had this issue, but my JoyCons developed it almost immediately.
Plastic gears running against plastic gears wear down over time because of friction and that creates dust. I have seen some retro modding solutions to this problem that add lubricant to the gear box to significantly reduce friction and wear.
Everyone I know who plays on controller complains about the failures.
In +20 years of using mice, guess what I've never had fail?