My guess is that "Murphy's Law" was inspired by a line in the song, "Who Threw the Overalls in Mrs. Murphy's Chowder?" revived as a hit in WWII:
And when Mrs. Murphy, she came to,
She began to cry and pout,
She'd put them in the wash that day
And forgot to pull them out!