Google decided to integrate Chat AI inside Google soon after ChatGPT was out. It's just that Microsoft has access to OpenAI and it ended up integrating it first. Google has the most advanced search AI and algos implemented well before anybody.