Apple makes money selling devices to people.
Google makes money selling people to advertisers.
As a result Apple's maps and ML assistant aren't as good as Google's which harvests way more of people's data.
I'm perfectly fine with this trade off. Lots of things iPhones do are even presented at as the data never leaving your phone at keynotes/press releases, and ads. A bullet point notably missing from Android phones. I deliberately use Apple's admittedly worse maps application whenever possible because I know it's not telling Big Brother about me when I know Google maps is.