The practice, which takes place before the home team comes to bat, became popular in 1860 because the number seven is considered lucky.
Why is the seventh-inning stretch held in the seventh inning?

The practice, which takes place before the home team comes to bat, became popular in 1860 because the number seven is considered lucky.