Ray Bradbury's post-apocalyptic short story "There will come soft rains" was written in between the end of World War II and the start of the tense relationship between the former U.S.S.R and the United States. The situation between the U.S. and the U.S.S.R resulted in the beginning of the nuclear race, also known as the Cold War.
In reality, society as a whole (not just Bradbury) began to realize the danger of nuclear power as well as the amount of anger and hatred that two countries must feel against each other to the point of actually be willing to bomb each other to death. As a result, literature, the media, and many other forms of expression openly demonstrated the perpetual fear of a nuclear war that the soon-to-be-named "baby boomers" experienced.
As a reflection of social preoccupation, Bradbury wrote "There will come soft rains", and his main idea is about what would happen when the machines overtake us: When that horrid apocalyptic ending comes and it is the machines, and not the humans, who will be the sole inhabitants of planet earth. A nuclear war can seriously wipe out civilization. Is life really that easy to take for granted?
Therefore, we can conclude that Bradbury's views on society at the time he wrote the story influenced greatly the topic he chose to treat: Life and death within a futuristic society in terrible danger.