Uber also gives you a price upfront, and that is the most you will pay (+ tip, if you feel like it). I don't remember pre-mobile phone taxi system that gave you a price upfront. They used to list the price per mile, and then it was up to you to figure out the distance and make sure the driver took a reasonably short route.
So no, the old taxi companies did NOT work "exactly like" Uber.