Drag a file to another folder on the same disk and Finder moves it. Drag it to an external drive and Finder copies it. The modifier keys let you choose instead of guessing.
Apple lists both in its shortcut list:
Command + drag to another volume move instead of copy
Option + drag copy instead of move
Apple notes that the pointer changes while you drag, so you can see what will happen before you let go.
Command-drag is the one for clearing space. Moving a folder of old videos from the internal disk to an external drive with a plain drag leaves the originals behind, so you’d have to delete them afterwards. Hold Command while you drag and the folder is moved, so nothing stays behind on the internal disk.
Option-drag is the reverse case: you want a second copy in another folder on the same disk, say a template you’re about to change.
Hold the key until after you let go of the mouse button. Release it too early and you get the default behaviour.
Be careful with a move to a disk you’re not sure about. A move across disks is really a copy plus a delete, so if the external drive is flaky, I’d rather copy, check the result, and delete the originals myself. And note the overlap with Option-Command-drag, which makes an alias instead.
Further reading: Mac keyboard shortcuts (Apple Support)