The two words, in this context, mean the same thing. But cab is not short for taxicab; rather, it comes from cabriolet, which in its original use referred to a two-wheeled, one-horse carriage with a leather hood that folded down. These carriages were rented out for hire.