You can find out more about the origins of this song on Wikipedia. Below is Wikipedia’s explanation of the ban placed on the film, “Scrub Me Mama with a Boogie Beat,” from which this song originates:
This cartoon has been withheld from distribution by Universal since 1949 due to its portrayal of African-Americans. The decision was made after a strong objection was raised by the NAACP upon the short’s reissue in 1948. The entire short was a shock to Lantz who prided himself on avoiding problems with the censors. He repeatedly stated that his cartoons were never meant to offend anyone. After the 1948 decision, Lantz made a major effort to make sure that offensive caricatures of any racial or ethnic group would never appear in his cartoons again. He also personally made sure that Scrub Me Mama would never be distributed on television.