CERN Large Hadron Collider

Why is the Large Hadron Collider as large as it is? I heard today that the actual accelerator portion is only 40 Meters long, the rest is (mostly) magnets that steer the particles, so why does the accelerator need to be 17 miles in circumference? Does making it larger provide any advantages?