We do still have taxis even in countries where mass transit is well maintained and popular. They're also not the perfect form of transportation for everyone as people can have disabilities causing limited mobility etc.
Automating things like trains also seems to have been a very slow process.