Apple spends something like 1 billion dollars a year on Apple Maps. There is no strategic reason for them to do maps. They aren't making money from it. They are anonymising the statistics they gather. They chose to spend this insane amount of money doing something completely foreign to them just so their customers don't have to use Google Maps.
Let that sink in.
It's incredible.
As for the quality of Apple Maps—yes, it was rubbish when it first launched but today it is usually (depending on your city and your specific usages) within cooee of equally good. In fact I tend to find Apple Maps often superior for walking and public transport directions in an unfamiliar city.