If you have enabled both iCloud Keychain and AutoFill password on your device, iPhone will automatically generate a password when you tap on the password field while signing up on a website in Safari.