1) Check if you have enabled Cross-device sync on your iOS and MacOS.
2) Check that the iCloud > Keychain is enabled in iCloud settings.
3) Check that you are using the same iCloud account both in iOS and MacOS.