If a note is locked with Face ID/Touch ID or a passcode, you need to remove the lock before sharing. Select the locked note, tap 'View Note' to unlock it using Face ID or your password, tap the More button (...), and choose 'Remove' to remove the password protection.