Which version of Mac OS do you have? What kind of storage drive do you have (hard drive, Fusion, or SSD)?
Assuming you are running a relatively recent version of Mac OS, and still have a hard drive, that's your problem.
Get an external USB3 SSD like the Samsung T5, use it as your boot drive, and you'll see a gigantic difference.