Even if FB/Instagram knows my wife and I share an IP address or there were both FB/Instagram and Google cookies on the same browser where I searched for Meow Mix, how would Instagram know my Google/Youtube history?
That's easy. The ad network that serves you ads on YouTube also serves ads on Facebook. They have a profile of you that connects your facebook and google accounts.