For Apple at least, they have no motive to gain market share on web-based maps, for them mapping is a means to an end rather than a product line in its own right. Maps on mobile are an expected feature right now, and having their own solution meant more flexibility and control, and less dependence on Google.