what is this for?

Like abodyjoe said....it's an emission control device. You should have (or did) a 2 piece speedo cable with a speed sensor in the middle also. Under certain speeds and conditions, the vacuum spark advance is modified.
Thanks, Mark