You can upgrade several parts in a desktop that you can't always upgrade in a laptop, which means you can buy individual parts for a desktop to match your needs instead of buying a whole new laptop.
For example, if you're finding that your web browser tabs are taking up all your desktop's RAM, you have the option to add more RAM on a desktop. Some laptops let you upgrade parts like RAM, but not all of them.
Or, say you want to add a graphics card for visual work or playing games. You can get a graphics card for a desktop. Usually, laptops don't let you upgrade the graphics chip.
The same thing goes for storage. I can add several extra hard drives or SSDs in a desktop, when laptops usually only let you upgrade the single hard drive or SSD they come with.
It looks daunting, but it's surprisingly easy, and there are several YouTube videos that show you exactly how to upgrade parts in a desktop (and laptops, for that matter).