Unknown, first attested in The John-Donkey (1848 July 29, page 47), popularized by the National Biscuit Company with the slogan “Polly wants a cracker?”
Polly want a cracker