Hello @rubenp
This is an easy explanation of the functionality of rebooting a PC.
Some time ago I read that it is good to restart computers when they get slow, because when they already have hours of use, some programs remain active and make them slow , I don't know if it is true. But when my PC gets slow, I reboot it and it has worked for me.
That's right, there are many programs running in the background, and on low-resource computers the performance drop is noticeable.