Obviously, by the time of those old cartoons, specifically from the 40's to the 60's (and even more true through the 70's and 80's), the job of Blacksmith was becoming less and less useful in urban areas, where kids who could watch television lived. Why then use an anvil for the gags where a character gets hit on the head with a heavy object? Did the kids understand what it was? If not, why use this object?
This question was asked before with an answer by /u/Bufus, though it could probably use more updating/research.
https://www.reddit.com/r/AskHistorians/comments/1psbj4/of_all_the_heavy_things_in_the_world_why_did/