Green’s Dictionary of Slang

it n.2

[late 19C+] as an indefinite object, used with a v., e.g. walk it, cab it.