This is configurable (it’s called “Handoff”) and by default this is switched off for security reasons, but you can change it if you like.
On iOS
Go to Settings> Copy & Paste > Clipboard > Allow Clipboard Handoff
On macOS
Go to Settings> Security & Privacy > Clipboard > Allow Clipboard Handoff