If you keep updating your computer's operating system, it will lead to decreased performance, as the new software dands more and more of the same hardware.
Every new version of windows increases the minimum system requirements, while offering nothing the user didn't already have.
The same can be seen with GNU/Linux too, but with it the "resource inflation" is at a reasonable level.
I don't know if defragging is still a thing in windows (I haven't used it in years) but it used to be.