It is short for taximeter, which is the name of the device which adds up the miles and calculates the fare.

But what is the etymology of taximeter, I have no idea at all. If my ancient memory serves me aright, I think the term originated in France, somewhere around the 1880s 0r 90s.