The verb attain is all about reaching some mark of achievement. You can attain a goal. You can even attain a destination.
If you consistently have the highest grades in your class, you'll probably attain a reputation for success. Attain derives in part from the Latin tangere, "to touch," which is also at the root of retain, "to keep," obtain, "to get," and contain, "to control." One might obtain the discipline to contain one's emotions while studying, thereby attaining control and retaining more information.