Expansion of your waistline is one thing; expansion in the economy is...a similar thing.
During times of expansion in the economy, there's lots of spending, lots of business activity, and lots of stuff being made (including waistline-expanding food). This period of expansion usually means good things for the stock market because business is booming. After a few months or a few years of it, though, the economy slows down and contracts.