Ride sharing is different from hitchhiking. Hitchhiking is done on the roadside (or gas stations) without organising rides beforehand, while ride sharing is typically agreed via websites and mobile apps. Travellers are usually paying for the ride either for driver's profit or to share the gas expenses.
Read more about ride sharing from Wikivoyage
See also the Future of Hitchhiking