According to "The Dickson Baseball Dictionary", the term came from the card game of contract bridge. A "grand slam" in contract bridge involves taking all the possible tricks. The word "slam", by itself, can mean a loud sound, such as a door being closed with a lot of force. "Slamming the door" on one's opponent(s), is similar to the bat slamming the ball into a home run.