Cracking the Code: How AI Decides Which Local Businesses to Feature in Search Results