Take photo or scan documents

Sometimes when editing a note and I toggle the “Scan documents” of “Take photo” on my Mac, it goes well and it automatically starts the photo taking app on my iPhone. But most of the time that doesn’t work and then I have to go back to my iPhone and start the whole, more cumbersome profess there. Any idea why/when this happens and sometimes not?