These are called onomatopoeias. Every language on the planet recognizes them. The very first human speech was composed heavily of them.
As noted by Paulie_D in the comments, they originated in the print comic version of the cartoon.
Taking a step deeper, culture historian Tim DeForest credits cartoonist Roy Crane for being the first to use them in comics: