I'm not familiar with that phrase, but a google produced the following, which seems logical:

In United States some common slang seems to have had its origin in Cockney rhyming slang: "raspberry," shortened from "raspberry tart" means fart;

http://www.answers.com/topic/cockney-rhyming-slang

Oh, goodness. I got the url creator correct on the very first try.