Here's what's behind the fluctuating costs of everyday grocery items such as ground beef, eggs and chocolate chip cookies.