Uber started showing up in Google Maps on my phone when I installed the Uber app on my phone. I just assumed there was an interface whereby apps could tell Google Maps "I can get people places".
I don't have any ride-sharing apps installed. Uber just showed up as an option in the directions section below car, walking and public transport, along with an estimated fare cost and 'first ride is free' offer.
I can't find the details now, but I'm sure I once saw an API provided by Maps on Android which allows any app to register itself as capable of providing directions or transit information.