Those fifties and sixties sitcoms, even the children’s cartoons, are filled with adult double entendres. No harm I guess, the kids had no clue at the time. I know I didn’t. I do recall my parents getting a giggle out of things that I didn’t think were funny, though.
I am not sure they were done on purpose. The language has changed quite a bit. I had never heard the word Beaver used in a salacious manner until maybe the 1970’s.